diff --git a/packages/meta/db-meta-schema/deploy/schemas/collections_public/tables/field/table.sql b/packages/meta/db-meta-schema/deploy/schemas/collections_public/tables/field/table.sql index 1619b7e65..b1c973e95 100644 --- a/packages/meta/db-meta-schema/deploy/schemas/collections_public/tables/field/table.sql +++ b/packages/meta/db-meta-schema/deploy/schemas/collections_public/tables/field/table.sql @@ -54,6 +54,8 @@ CREATE TABLE collections_public.field ( min float default null, max float default null, + tags citext[] NOT NULL DEFAULT '{}', + -- CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES collections_public.database (id) ON DELETE CASCADE, CONSTRAINT table_fkey FOREIGN KEY (table_id) REFERENCES collections_public.table (id) ON DELETE CASCADE, diff --git a/packages/meta/db-meta-schema/deploy/schemas/collections_public/tables/table/table.sql b/packages/meta/db-meta-schema/deploy/schemas/collections_public/tables/table/table.sql index aed1a2e31..6b6e6d629 100644 --- a/packages/meta/db-meta-schema/deploy/schemas/collections_public/tables/table/table.sql +++ b/packages/meta/db-meta-schema/deploy/schemas/collections_public/tables/table/table.sql @@ -5,7 +5,7 @@ BEGIN; -CREATE TYPE collections_public.table_category AS ENUM ('system', 'module', 'user'); +CREATE TYPE collections_public.table_category AS ENUM ('core', 'module', 'app'); CREATE TABLE collections_public.table ( id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (), @@ -20,7 +20,7 @@ CREATE TABLE collections_public.table ( smart_tags jsonb, - category collections_public.table_category NOT NULL DEFAULT 'user', + category collections_public.table_category NOT NULL DEFAULT 'app', module text NULL, scope int NULL, @@ -32,6 +32,8 @@ CREATE TABLE collections_public.table ( plural_name text, singular_name text, + tags citext[] NOT NULL DEFAULT '{}', + -- CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES collections_public.database (id) ON DELETE CASCADE,