Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (),
Expand All @@ -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,

Expand All @@ -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,
Expand Down