docs: pg init sql (#1210)

Co-authored-by: tanxiao <tanxiao@asiainfo.com>
This commit is contained in:
xtan 2022-10-20 12:32:13 +08:00 committed by GitHub
parent 62867ddbf2
commit fbff60eefb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -198,7 +198,9 @@ CREATE TABLE board (
id bigserial not null , id bigserial not null ,
group_id bigint not null default 0 , group_id bigint not null default 0 ,
name varchar(191) not null, name varchar(191) not null,
ident varchar(200) not null default '',
tags varchar(255) not null , tags varchar(255) not null ,
public smallint not null default 0,
create_at bigint not null default 0, create_at bigint not null default 0,
create_by varchar(64) not null default '', create_by varchar(64) not null default '',
update_at bigint not null default 0, 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"); 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.group_id IS 'busi group id';
COMMENT ON COLUMN board.tags IS 'split by space'; 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 -- for dashboard new version
CREATE TABLE board_payload ( CREATE TABLE board_payload (