Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
docker-iot-v3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
deploy
docker-iot-v3
Commits
bd02ea1e
Commit
bd02ea1e
authored
Aug 08, 2023
by
吴文龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
09650370
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
hsiotdb_pgsql_03.sql
db/hsiotdb_pgsql_03.sql
+56
-0
No files found.
db/hsiotdb_pgsql_03.sql
View file @
bd02ea1e
...
...
@@ -122,3 +122,59 @@ COMMENT ON TABLE "public"."hs_db_conf" IS '租户同步数据到对应数据库
-- ----------------------------
ALTER
TABLE
"public"
.
"hs_db_conf"
ADD
CONSTRAINT
"hs_device_syn_conf_copy1_pkey"
PRIMARY
KEY
(
"id"
);
-- ----------------------------
-- Table structure for hs_board_manage
-- ----------------------------
DROP
TABLE
IF
EXISTS
"public"
.
"hs_board_manage"
;
CREATE
TABLE
"public"
.
"hs_board_manage"
(
"id"
uuid
NOT
NULL
,
"name"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"url"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"images"
varchar
(
10000000
)
COLLATE
"pg_catalog"
.
"default"
,
"created_time"
int8
,
"created_user"
uuid
,
"tenant_id"
uuid
,
"updated_time"
int8
,
"updated_user"
uuid
,
"sort"
int4
DEFAULT
0
)
;
ALTER
TABLE
"public"
.
"hs_board_manage"
OWNER
TO
"postgres"
;
COMMENT
ON
COLUMN
"public"
.
"hs_board_manage"
.
"name"
IS
'看板名称'
;
COMMENT
ON
COLUMN
"public"
.
"hs_board_manage"
.
"url"
IS
'看板地址'
;
COMMENT
ON
COLUMN
"public"
.
"hs_board_manage"
.
"images"
IS
'看板缩略图'
;
COMMENT
ON
COLUMN
"public"
.
"hs_board_manage"
.
"sort"
IS
'排序值'
;
COMMENT
ON
TABLE
"public"
.
"hs_board_manage"
IS
'看板配置管理'
;
-- ----------------------------
-- Table structure for hs_board_manage_role
-- ----------------------------
DROP
TABLE
IF
EXISTS
"public"
.
"hs_board_manage_role"
;
CREATE
TABLE
"public"
.
"hs_board_manage_role"
(
"id"
uuid
NOT
NULL
,
"board_id"
uuid
,
"role_id"
uuid
,
"images"
varchar
(
10000000
)
COLLATE
"pg_catalog"
.
"default"
,
"created_time"
int8
,
"created_user"
uuid
,
"tenant_id"
uuid
,
"updated_time"
int8
,
"updated_user"
uuid
)
;
ALTER
TABLE
"public"
.
"hs_board_manage_role"
OWNER
TO
"postgres"
;
COMMENT
ON
COLUMN
"public"
.
"hs_board_manage_role"
.
"id"
IS
'主键'
;
COMMENT
ON
COLUMN
"public"
.
"hs_board_manage_role"
.
"board_id"
IS
'看板标识'
;
COMMENT
ON
COLUMN
"public"
.
"hs_board_manage_role"
.
"role_id"
IS
'角色标识'
;
COMMENT
ON
COLUMN
"public"
.
"hs_board_manage_role"
.
"images"
IS
'看板缩略图'
;
COMMENT
ON
TABLE
"public"
.
"hs_board_manage_role"
IS
'看板角色关系'
;
-- ----------------------------
-- Primary Key structure for table hs_board_manage
-- ----------------------------
ALTER
TABLE
"public"
.
"hs_board_manage"
ADD
CONSTRAINT
"hs_board_manage_pkey"
PRIMARY
KEY
(
"id"
);
-- ----------------------------
-- Primary Key structure for table hs_board_manage_role
-- ----------------------------
ALTER
TABLE
"public"
.
"hs_board_manage_role"
ADD
CONSTRAINT
"hs_board_manage_copy1_pkey"
PRIMARY
KEY
(
"id"
);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment