Skip to content

Commit b44e539

Browse files
authored
Merge pull request #7 from launchql/feat/tags
tags
2 parents be389fb + 3dd7e17 commit b44e539

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ CREATE TABLE collections_public.field (
5454
min float default null,
5555
max float default null,
5656

57+
tags citext[] NOT NULL DEFAULT '{}',
58+
5759
--
5860
CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES collections_public.database (id) ON DELETE CASCADE,
5961
CONSTRAINT table_fkey FOREIGN KEY (table_id) REFERENCES collections_public.table (id) ON DELETE CASCADE,

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
BEGIN;
77

8-
CREATE TYPE collections_public.table_category AS ENUM ('system', 'module', 'user');
8+
CREATE TYPE collections_public.table_category AS ENUM ('core', 'module', 'app');
99

1010
CREATE TABLE collections_public.table (
1111
id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
@@ -20,7 +20,7 @@ CREATE TABLE collections_public.table (
2020

2121
smart_tags jsonb,
2222

23-
category collections_public.table_category NOT NULL DEFAULT 'user',
23+
category collections_public.table_category NOT NULL DEFAULT 'app',
2424
module text NULL,
2525
scope int NULL,
2626

@@ -32,6 +32,8 @@ CREATE TABLE collections_public.table (
3232
plural_name text,
3333
singular_name text,
3434

35+
tags citext[] NOT NULL DEFAULT '{}',
36+
3537
--
3638

3739
CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES collections_public.database (id) ON DELETE CASCADE,

0 commit comments

Comments
 (0)