From 7bf7923cfa1a0fcae2ba3c9a0a9a3f04ddb19ede Mon Sep 17 00:00:00 2001 From: Timur Shemsedinov Date: Fri, 11 Sep 2020 19:30:30 +0300 Subject: [PATCH] test: add example schemas for test Refs: https://github.com/metarhia/metasql/issues/6 PR-URL: https://github.com/metarhia/metasql/pull/14 --- test/schema/Country.js | 1 + test/schema/District.js | 4 ++++ test/schema/Planet.js | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 test/schema/District.js create mode 100644 test/schema/Planet.js diff --git a/test/schema/Country.js b/test/schema/Country.js index 915d8e5..bf9dca5 100644 --- a/test/schema/Country.js +++ b/test/schema/Country.js @@ -1,3 +1,4 @@ ({ + planet: 'Planet', name: { type: 'string', unique: true }, }); diff --git a/test/schema/District.js b/test/schema/District.js new file mode 100644 index 0000000..1d2e9a0 --- /dev/null +++ b/test/schema/District.js @@ -0,0 +1,4 @@ +({ + city: 'City', + name: { type: 'string', unique: true }, +}); diff --git a/test/schema/Planet.js b/test/schema/Planet.js new file mode 100644 index 0000000..915d8e5 --- /dev/null +++ b/test/schema/Planet.js @@ -0,0 +1,3 @@ +({ + name: { type: 'string', unique: true }, +});