Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-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
赵啸非
attendance-performance-platform
Commits
251d0c5c
Commit
251d0c5c
authored
Apr 07, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加部门信息表
parent
b9189241
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
db/module.sql
db/module.sql
+23
-0
No files found.
db/module.sql
View file @
251d0c5c
-- ----------------------------
-- 部门信息表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mortals_xhx_dept`
;
CREATE
TABLE
`mortals_xhx_dept`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID,主键,自增长'
,
`parentId`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'父id'
,
`ancestors`
varchar
(
256
)
NOT
NULL
COMMENT
'祖级列表'
,
`deptName`
varchar
(
256
)
NOT
NULL
COMMENT
'部门名称'
,
`deptStatus`
tinyint
(
2
)
NOT
NULL
DEFAULT
'1'
COMMENT
'部门状态(0.停用,1.启用)'
,
`orderNum`
int
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'顺序'
,
`remark`
varchar
(
256
)
DEFAULT
NULL
COMMENT
'备注'
,
`createUserId`
bigint
(
20
)
NOT
NULL
COMMENT
'创建用户'
,
`createTime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`updateUserId`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'更新用户'
,
`updateTime`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
KEY
`deptStatus`
(
`deptStatus`
)
USING
BTREE
,
KEY
`orderNum`
(
`orderNum`
)
USING
BTREE
,
KEY
`createUserId`
(
`createUserId`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
9
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