Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
5f8fa1f2
Commit
5f8fa1f2
authored
Jan 16, 2020
by
wtune
Committed by
elunez
Jan 16, 2020
Browse files
⚡
add index on dept.pid (#254)
parent
06992e06
Changes
1
Hide whitespace changes
Inline
Side-by-side
sql/eladmin.sql
View file @
5f8fa1f2
...
@@ -80,7 +80,8 @@ CREATE TABLE `dept` (
...
@@ -80,7 +80,8 @@ CREATE TABLE `dept` (
`pid`
bigint
(
20
)
NOT
NULL
COMMENT
'上级部门'
,
`pid`
bigint
(
20
)
NOT
NULL
COMMENT
'上级部门'
,
`enabled`
bit
(
1
)
NOT
NULL
COMMENT
'状态'
,
`enabled`
bit
(
1
)
NOT
NULL
COMMENT
'状态'
,
`create_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建日期'
,
`create_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建日期'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
KEY
`idx_pid`
(
`pid`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
12
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
COMMENT
=
'部门'
ROW_FORMAT
=
Compact
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
12
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
COMMENT
=
'部门'
ROW_FORMAT
=
Compact
;
-- ----------------------------
-- ----------------------------
...
...
Write
Preview
Supports
Markdown
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