We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d74136a commit d595bb9Copy full SHA for d595bb9
1 file changed
packages/meta/db-meta-schema/deploy/schemas/collections_public/tables/table/table.sql
@@ -4,6 +4,9 @@
4
-- requires: schemas/collections_public/tables/schema/table
5
6
BEGIN;
7
+
8
+CREATE TYPE collections_public.table_category AS ENUM ('system', 'module', 'user');
9
10
CREATE TABLE collections_public.table (
11
id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
12
database_id uuid NOT NULL DEFAULT uuid_nil(),
@@ -17,7 +20,10 @@ CREATE TABLE collections_public.table (
17
20
18
21
smart_tags jsonb,
19
22
- is_system boolean DEFAULT FALSE, -- TODO DEPRECATE
23
+ category collections_public.table_category NOT NULL DEFAULT 'user',
24
+ module text NULL,
25
+ scope int NULL,
26
27
use_rls boolean NOT NULL DEFAULT FALSE,
28
29
timestamps boolean NOT NULL DEFAULT FALSE,
0 commit comments