Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
737baf1f
Commit
737baf1f
authored
Jun 21, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加设备相关信息
parent
78d23419
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
1 deletion
+37
-1
sample-form-manager/db/add.sql
sample-form-manager/db/add.sql
+37
-1
No files found.
sample-form-manager/db/add.sql
View file @
737baf1f
...
@@ -19,4 +19,40 @@ ALTER TABLE mortals_xhx_device
...
@@ -19,4 +19,40 @@ ALTER TABLE mortals_xhx_device
ALTER
TABLE
mortals_xhx_device
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`onlineTime`
datetime
DEFAULT
NULL
COMMENT
'最近上线时间'
AFTER
deviceRemark
;
ADD
COLUMN
`onlineTime`
datetime
DEFAULT
NULL
COMMENT
'最近上线时间'
AFTER
deviceRemark
;
ALTER
TABLE
mortals_xhx_device
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`offlineTime`
datetime
DEFAULT
NULL
COMMENT
'最近离线时间'
AFTER
onlineTime
;
ADD
COLUMN
`offlineTime`
datetime
DEFAULT
NULL
COMMENT
'最近离线时间'
AFTER
onlineTime
;
\ No newline at end of file
-- ----------------------------
-- 材料分类表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mortals_xhx_datum_category`
;
CREATE
TABLE
mortals_xhx_datum_category
(
`id`
bigint
(
20
)
AUTO_INCREMENT
COMMENT
'主键ID,主键,自增长'
,
`categoryId`
bigint
(
20
)
COMMENT
'分类id'
,
`categoryName`
varchar
(
256
)
COMMENT
'分类名称'
,
`materialId`
bigint
(
20
)
COMMENT
'材料Id'
,
`materialName`
varchar
(
256
)
COMMENT
'材料名称'
,
`sort`
int
(
4
)
DEFAULT
'0'
COMMENT
'排序字段'
,
`createTime`
datetime
COMMENT
'创建时间'
,
`createUserId`
bigint
(
20
)
COMMENT
'创建用户'
,
`updateUserId`
bigint
(
20
)
COMMENT
'更新用户'
,
`updateTime`
datetime
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'材料分类'
;
-- ----------------------------
-- 事项材料分类表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mortals_xhx_matter_category`
;
CREATE
TABLE
mortals_xhx_matter_category
(
`id`
bigint
(
20
)
AUTO_INCREMENT
COMMENT
'主键ID,主键,自增长'
,
`categoryCode`
varchar
(
20
)
COMMENT
'分类编码'
,
`categoryName`
varchar
(
256
)
COMMENT
'分类名称'
,
`matterId`
bigint
(
20
)
COMMENT
'事项Id'
,
`matterName`
varchar
(
256
)
COMMENT
'事项名称'
,
`sort`
int
(
4
)
DEFAULT
'0'
COMMENT
'排序字段'
,
`createTime`
datetime
COMMENT
'创建时间'
,
`createUserId`
bigint
(
20
)
COMMENT
'创建用户'
,
`updateUserId`
bigint
(
20
)
COMMENT
'更新用户'
,
`updateTime`
datetime
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'事项材料分类'
;
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