From fbff60eefbef1f46a0867157e7b5ce4b97e91ca1 Mon Sep 17 00:00:00 2001 From: xtan <38320121+tanxiao1990@users.noreply.github.com> Date: Thu, 20 Oct 2022 12:32:13 +0800 Subject: [PATCH] docs: pg init sql (#1210) Co-authored-by: tanxiao --- docker/initsql_for_postgres/a-n9e-for-Postgres.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/initsql_for_postgres/a-n9e-for-Postgres.sql b/docker/initsql_for_postgres/a-n9e-for-Postgres.sql index 6c8c935e..4d42db63 100644 --- a/docker/initsql_for_postgres/a-n9e-for-Postgres.sql +++ b/docker/initsql_for_postgres/a-n9e-for-Postgres.sql @@ -198,7 +198,9 @@ CREATE TABLE board ( id bigserial not null , group_id bigint not null default 0 , name varchar(191) not null, + ident varchar(200) not null default '', tags varchar(255) not null , + public smallint not null default 0, create_at bigint not null default 0, create_by varchar(64) not null default '', update_at bigint not null default 0, @@ -208,6 +210,8 @@ ALTER TABLE board ADD CONSTRAINT board_pk PRIMARY KEY (id); ALTER TABLE board ADD CONSTRAINT board_un UNIQUE (group_id,"name"); COMMENT ON COLUMN board.group_id IS 'busi group id'; COMMENT ON COLUMN board.tags IS 'split by space'; +COMMENT ON COLUMN board.public IS '0:false 1:true'; +CREATE INDEX board_ident_idx ON board (ident); -- for dashboard new version CREATE TABLE board_payload (