Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
pig_冷冷
Pig
提交
ed8bd976
Pig
项目概览
pig_冷冷
/
Pig
上一次同步 大约 1 年
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Pig
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ed8bd976
编写于
3月 16, 2020
作者:
pig_冷冷
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
🗃
执行数据库相关的变化. 统一编码集
上级
4260179f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
15 deletion
+15
-15
db/pig.sql
db/pig.sql
+15
-15
未找到文件。
db/pig.sql
浏览文件 @
ed8bd976
DROP
DATABASE
IF
EXISTS
`pig`
;
CREATE
DATABASE
`pig`
DEFAULT
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
bin
;
CREATE
DATABASE
`pig`
DEFAULT
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general_ci
;
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
...
...
@@ -238,7 +238,7 @@ CREATE TABLE `sys_oauth_client_details` (
`additional_information`
varchar
(
4096
)
DEFAULT
NULL
,
`autoapprove`
varchar
(
256
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`client_id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_
bin
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'终端信息表'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_
general_ci
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'终端信息表'
;
-- ----------------------------
-- Records of sys_oauth_client_details
...
...
@@ -257,15 +257,15 @@ COMMIT;
DROP
TABLE
IF
EXISTS
`sys_role`
;
CREATE
TABLE
`sys_role`
(
`role_id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`role_name`
varchar
(
64
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
bin
NOT
NULL
,
`role_code`
varchar
(
64
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
bin
NOT
NULL
,
`role_desc`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
bin
DEFAULT
NULL
,
`role_name`
varchar
(
64
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general_ci
NOT
NULL
,
`role_code`
varchar
(
64
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general_ci
NOT
NULL
,
`role_desc`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general_ci
DEFAULT
NULL
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`update_time`
datetime
NULL
DEFAULT
NULL
ON
UPDATE
CURRENT_TIMESTAMP
,
`del_flag`
char
(
1
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
bin
DEFAULT
'0'
COMMENT
'删除标识(0-正常,1-删除)'
,
`del_flag`
char
(
1
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general_ci
DEFAULT
'0'
COMMENT
'删除标识(0-正常,1-删除)'
,
PRIMARY
KEY
(
`role_id`
),
UNIQUE
KEY
`role_idx1_role_code`
(
`role_code`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_
bin
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'系统角色表'
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_
general_ci
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'系统角色表'
;
-- ----------------------------
-- Records of sys_role
...
...
@@ -337,19 +337,19 @@ COMMIT;
DROP
TABLE
IF
EXISTS
`sys_user`
;
CREATE
TABLE
`sys_user`
(
`user_id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`username`
varchar
(
64
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
bin
NOT
NULL
COMMENT
'用户名'
,
`password`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
bin
NOT
NULL
,
`salt`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
bin
DEFAULT
NULL
COMMENT
'随机盐'
,
`phone`
varchar
(
20
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
bin
DEFAULT
NULL
COMMENT
'简介'
,
`avatar`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
bin
DEFAULT
NULL
COMMENT
'头像'
,
`username`
varchar
(
64
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general_ci
NOT
NULL
COMMENT
'用户名'
,
`password`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general_ci
NOT
NULL
,
`salt`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general_ci
DEFAULT
NULL
COMMENT
'随机盐'
,
`phone`
varchar
(
20
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general_ci
DEFAULT
NULL
COMMENT
'简介'
,
`avatar`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general_ci
DEFAULT
NULL
COMMENT
'头像'
,
`dept_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'部门ID'
,
`create_time`
datetime
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`update_time`
datetime
NULL
DEFAULT
NULL
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'修改时间'
,
`lock_flag`
char
(
1
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
bin
DEFAULT
'0'
COMMENT
'0-正常,9-锁定'
,
`del_flag`
char
(
1
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
bin
DEFAULT
'0'
COMMENT
'0-正常,1-删除'
,
`lock_flag`
char
(
1
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general_ci
DEFAULT
'0'
COMMENT
'0-正常,9-锁定'
,
`del_flag`
char
(
1
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general_ci
DEFAULT
'0'
COMMENT
'0-正常,1-删除'
,
PRIMARY
KEY
(
`user_id`
),
KEY
`user_idx1_username`
(
`username`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_
bin
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'用户表'
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_
general_ci
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'用户表'
;
-- ----------------------------
-- Records of sys_user
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录