Skip to content

Commit d595bb9

Browse files
committed
add table category, module, scope
1 parent d74136a commit d595bb9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • packages/meta/db-meta-schema/deploy/schemas/collections_public/tables/table

packages/meta/db-meta-schema/deploy/schemas/collections_public/tables/table/table.sql

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
-- requires: schemas/collections_public/tables/schema/table
55

66
BEGIN;
7+
8+
CREATE TYPE collections_public.table_category AS ENUM ('system', 'module', 'user');
9+
710
CREATE TABLE collections_public.table (
811
id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
912
database_id uuid NOT NULL DEFAULT uuid_nil(),
@@ -17,7 +20,10 @@ CREATE TABLE collections_public.table (
1720

1821
smart_tags jsonb,
1922

20-
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+
2127
use_rls boolean NOT NULL DEFAULT FALSE,
2228

2329
timestamps boolean NOT NULL DEFAULT FALSE,

0 commit comments

Comments
 (0)