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
09650370
Commit
09650370
authored
Aug 08, 2023
by
吴文龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
26fb6f8e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
31 deletions
+29
-31
hsiotdb_pgsql_01.sql
db/hsiotdb_pgsql_01.sql
+29
-28
postgres-update.txt
db/postgres-update.txt
+0
-3
No files found.
db/hsiotdb_pgsql_01.sql
View file @
09650370
...
...
@@ -185,48 +185,49 @@ COMMENT ON COLUMN "public"."hs_device_electric_hour"."gateway_id" IS '网关id';
-- ----------------------------
-- Table structure for hs_device_extension
-- ----------------------------
DROP
TABLE
IF
EXISTS
"public"
.
"hs_device_extension"
;
CREATE
TABLE
"public"
.
"hs_device_extension"
(
"id"
uuid
NOT
NULL
,
"workshop_id"
uuid
,
"group_id"
uuid
,
"picture"
varchar
(
10000000
)
COLLATE
"pg_catalog"
.
"default"
,
"icon"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"created_user"
uuid
,
"updated_time"
int8
,
"updated_user"
uuid
,
"comment"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"sn"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"device_type"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"created_time"
int8
,
"factory_id"
uuid
,
"tenant_id"
uuid
NOT
NULL
,
CONSTRAINT
"hs_device_ extension_pkey"
PRIMARY
KEY
(
"id"
)
"id"
uuid
NOT
NULL
,
"workshop_id"
uuid
,
"group_id"
uuid
,
"picture"
varchar
(
10000000
)
COLLATE
"pg_catalog"
.
"default"
,
"icon"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"created_user"
uuid
,
"updated_time"
int8
,
"updated_user"
uuid
,
"comment"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"sn"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"device_type"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"created_time"
int8
,
"factory_id"
uuid
,
"tenant_id"
uuid
NOT
NULL
,
"sort"
int4
DEFAULT
1000
,
"model_id"
uuid
)
;
ALTER
TABLE
"public"
.
"hs_device_extension"
OWNER
TO
"postgres"
;
ALTER
TABLE
"public"
.
"hs_device_extension"
OWNER
TO
"postgres"
;
COMMENT
ON
COLUMN
"public"
.
"hs_device_extension"
.
"id"
IS
'设备标识'
;
COMMENT
ON
COLUMN
"public"
.
"hs_device_extension"
.
"workshop_id"
IS
'车间标识'
;
COMMENT
ON
COLUMN
"public"
.
"hs_device_extension"
.
"group_id"
IS
'分组标识'
;
COMMENT
ON
COLUMN
"public"
.
"hs_device_extension"
.
"picture"
IS
'图片'
;
COMMENT
ON
COLUMN
"public"
.
"hs_device_extension"
.
"icon"
IS
'图标'
;
COMMENT
ON
COLUMN
"public"
.
"hs_device_extension"
.
"comment"
IS
'备注'
;
COMMENT
ON
COLUMN
"public"
.
"hs_device_extension"
.
"device_type"
IS
'设备类型'
;
COMMENT
ON
COLUMN
"public"
.
"hs_device_extension"
.
"created_time"
IS
'创建时间'
;
COMMENT
ON
COLUMN
"public"
.
"hs_device_extension"
.
"factory_id"
IS
'工厂标识(客户标识)'
;
COMMENT
ON
COLUMN
"public"
.
"hs_device_extension"
.
"sort"
IS
'排序'
;
COMMENT
ON
COLUMN
"public"
.
"hs_device_extension"
.
"model_id"
IS
'模型id'
;
COMMENT
ON
TABLE
"public"
.
"hs_device_extension"
IS
'设备信息扩展表'
;
-- ----------------------------
-- Primary Key structure for table hs_device_extension
-- ----------------------------
ALTER
TABLE
"public"
.
"hs_device_extension"
ADD
CONSTRAINT
"hs_device_ extension_pkey"
PRIMARY
KEY
(
"id"
);
...
...
db/postgres-update.txt
View file @
09650370
...
...
@@ -2,9 +2,6 @@ ALTER TABLE "public"."hs_board_manage" ADD COLUMN "sort" int4 DEFAULT 0;
COMMENT ON COLUMN "public"."hs_board_manage"."sort" IS '排序值';
ALTER TABLE "public"."hs_device_extension" ADD COLUMN "model_id" uuid;
COMMENT ON COLUMN "public"."hs_device_extension"."model_id" IS '模型id';
ALTER TABLE "public"."hs_last_expand_extension" ALTER COLUMN "volume_on_history" SET NOT NULL;
...
...
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