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
26fb6f8e
Commit
26fb6f8e
authored
Aug 08, 2023
by
吴文龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
42cb1bb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
hsiotdb_pgsql_03.sql
db/hsiotdb_pgsql_03.sql
+32
-0
No files found.
db/hsiotdb_pgsql_03.sql
View file @
26fb6f8e
...
@@ -90,3 +90,35 @@ COMMENT ON TABLE "public"."hs_order_statistical" IS '统计订单的能耗产量
...
@@ -90,3 +90,35 @@ COMMENT ON TABLE "public"."hs_order_statistical" IS '统计订单的能耗产量
ALTER
TABLE
hs_customer_extension
ADD
COLUMN
"sort"
int4
DEFAULT
1000
;
ALTER
TABLE
hs_customer_extension
ADD
COLUMN
"sort"
int4
DEFAULT
1000
;
ALTER
TABLE
tcode_group
ADD
COLUMN
"id"
uuid
NOT
NULL
;
ALTER
TABLE
tcode_group
ADD
COLUMN
"id"
uuid
NOT
NULL
;
ALTER
TABLE
tcode_group
ADD
CONSTRAINT
"tcode_group_pkey"
PRIMARY
KEY
(
"id"
);
ALTER
TABLE
tcode_group
ADD
CONSTRAINT
"tcode_group_pkey"
PRIMARY
KEY
(
"id"
);
-- ----------------------------
-- Table structure for hs_db_conf
-- ----------------------------
DROP
TABLE
IF
EXISTS
"public"
.
"hs_db_conf"
;
CREATE
TABLE
"public"
.
"hs_db_conf"
(
"id"
uuid
NOT
NULL
,
"created_time"
int8
,
"tenant_id"
uuid
NOT
NULL
,
"host"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
NOT
NULL
,
"port"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
NOT
NULL
,
"user"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
NOT
NULL
,
"password"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
NOT
NULL
,
"database"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
NOT
NULL
)
;
ALTER
TABLE
"public"
.
"hs_db_conf"
OWNER
TO
"postgres"
;
COMMENT
ON
COLUMN
"public"
.
"hs_db_conf"
.
"id"
IS
'设备标识'
;
COMMENT
ON
COLUMN
"public"
.
"hs_db_conf"
.
"created_time"
IS
'创建时间'
;
COMMENT
ON
COLUMN
"public"
.
"hs_db_conf"
.
"tenant_id"
IS
'租户'
;
COMMENT
ON
COLUMN
"public"
.
"hs_db_conf"
.
"host"
IS
'地址'
;
COMMENT
ON
COLUMN
"public"
.
"hs_db_conf"
.
"port"
IS
'端口'
;
COMMENT
ON
COLUMN
"public"
.
"hs_db_conf"
.
"user"
IS
'用户'
;
COMMENT
ON
COLUMN
"public"
.
"hs_db_conf"
.
"password"
IS
'密码'
;
COMMENT
ON
COLUMN
"public"
.
"hs_db_conf"
.
"database"
IS
'数据库'
;
COMMENT
ON
TABLE
"public"
.
"hs_db_conf"
IS
'租户同步数据到对应数据库配置表'
;
-- ----------------------------
-- Primary Key structure for table hs_db_conf
-- ----------------------------
ALTER
TABLE
"public"
.
"hs_db_conf"
ADD
CONSTRAINT
"hs_device_syn_conf_copy1_pkey"
PRIMARY
KEY
(
"id"
);
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