mirror of https://gitee.com/stylefeng/guns
【7.3.0】重新表字段编码
parent
7f061e1453
commit
9c4c33363f
|
@ -23,15 +23,15 @@ CREATE TABLE `hr_org_approver` (
|
|||
CREATE TABLE `hr_organization` (
|
||||
`org_id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`org_parent_id` bigint(20) NOT NULL COMMENT '父id,一级节点父id是0',
|
||||
`org_pids` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '父ids',
|
||||
`org_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '组织名称',
|
||||
`org_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '组织编码',
|
||||
`org_pids` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '父ids',
|
||||
`org_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '组织名称',
|
||||
`org_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '组织编码',
|
||||
`org_sort` decimal(10, 2) NOT NULL COMMENT '排序',
|
||||
`status_flag` tinyint(4) NOT NULL COMMENT '状态:1-启用,2-禁用',
|
||||
`org_type` tinyint(4) NULL DEFAULT 1 COMMENT '组织机构类型:1-公司,2-部门',
|
||||
`tax_no` varchar(30) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '税号',
|
||||
`org_remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述',
|
||||
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '删除标记:Y-已删除,N-未删除',
|
||||
`org_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记:Y-已删除,N-未删除',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
|
@ -51,12 +51,12 @@ INSERT INTO `hr_organization` VALUES (1339554696976781409, 1339554696976781408,
|
|||
-- ----------------------------
|
||||
CREATE TABLE `hr_position` (
|
||||
`position_id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`position_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '职位名称',
|
||||
`position_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '职位编码',
|
||||
`position_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '职位名称',
|
||||
`position_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '职位编码',
|
||||
`position_sort` decimal(10, 2) NOT NULL COMMENT '排序',
|
||||
`status_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态:1-启用,2-禁用',
|
||||
`position_remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '删除标记:Y-已删除,N-未删除',
|
||||
`position_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '删除标记:Y-已删除,N-未删除',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
|
@ -76,14 +76,14 @@ INSERT INTO `hr_position` VALUES (1339554696976781334, '董事长', 'dsz', 3.00,
|
|||
-- ----------------------------
|
||||
CREATE TABLE `sys_app` (
|
||||
`app_id` bigint(20) NOT NULL COMMENT '主键id',
|
||||
`app_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '应用名称',
|
||||
`app_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编码',
|
||||
`app_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '应用名称',
|
||||
`app_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编码',
|
||||
`app_icon` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '应用图标',
|
||||
`active_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '是否默认激活:Y-是,N-否,激活的应用下的菜单会在首页默认展开',
|
||||
`active_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否默认激活:Y-是,N-否,激活的应用下的菜单会在首页默认展开',
|
||||
`status_flag` tinyint(4) NOT NULL COMMENT '状态:1-启用,2-禁用',
|
||||
`app_sort` int(11) NULL DEFAULT NULL COMMENT '排序',
|
||||
`devops_flag` char(1) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT 'N' COMMENT '是否是devops应用:Y-是,N-否',
|
||||
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '是否删除:Y-已删除,N-未删除',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否删除:Y-已删除,N-未删除',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -110,7 +110,7 @@ CREATE TABLE `sys_config` (
|
|||
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`status_flag` tinyint(4) NULL DEFAULT 1 COMMENT '状态:1-正常,2-停用',
|
||||
`group_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '常量所属分类的编码,来自于“常量的分类”字典',
|
||||
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-被删除,N-未删除',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-被删除,N-未删除',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -221,7 +221,7 @@ CREATE TABLE `sys_database_info` (
|
|||
`status_flag` tinyint(4) NULL DEFAULT NULL COMMENT '数据源状态:1-正常,2-无法连接',
|
||||
`error_description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '连接失败原因',
|
||||
`remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '备注,摘要',
|
||||
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除,Y-被删除,N-未删除',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除,Y-被删除,N-未删除',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -250,7 +250,7 @@ CREATE TABLE `sys_dict` (
|
|||
`status_flag` tinyint(4) NOT NULL COMMENT '状态:(1-启用,2-禁用),参考 StatusEnum',
|
||||
`dict_sort` decimal(10, 2) NULL DEFAULT NULL COMMENT '排序,带小数点',
|
||||
`dict_pids` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '父id集合',
|
||||
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除,Y-被删除,N-未删除',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除,Y-被删除,N-未删除',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建用户id',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -313,7 +313,7 @@ CREATE TABLE `sys_dict_type` (
|
|||
`dict_type_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '字典类型描述',
|
||||
`status_flag` tinyint(4) NULL DEFAULT NULL COMMENT '字典类型的状态:1-启用,2-禁用,参考 StatusEnum',
|
||||
`dict_type_sort` decimal(10, 2) NULL DEFAULT NULL COMMENT '排序,带小数点',
|
||||
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-被删除,N-未删除',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-被删除,N-未删除',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建用户id',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -340,12 +340,12 @@ INSERT INTO `sys_dict_type` VALUES (1574327405802168321, 1, NULL, 'select_relati
|
|||
-- ----------------------------
|
||||
CREATE TABLE `sys_expand` (
|
||||
`expand_id` bigint(20) NOT NULL COMMENT '主键id',
|
||||
`expand_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '拓展业务名称',
|
||||
`expand_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '拓展业务唯一编码',
|
||||
`expand_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '拓展业务名称',
|
||||
`expand_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '拓展业务唯一编码',
|
||||
`expand_status` tinyint(4) NULL DEFAULT NULL COMMENT '状态:1-启用,2-禁用',
|
||||
`primary_table_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '主业务表,例如:sys_user',
|
||||
`primary_field_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '业务主键id字段名,例如:user_id',
|
||||
`primary_field_camel` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '业务主键id字段名驼峰法,例如:userId',
|
||||
`primary_table_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主业务表,例如:sys_user',
|
||||
`primary_field_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务主键id字段名,例如:user_id',
|
||||
`primary_field_camel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务主键id字段名驼峰法,例如:userId',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
|
@ -366,7 +366,7 @@ CREATE TABLE `sys_expand_data` (
|
|||
`expand_data_id` bigint(20) NOT NULL COMMENT '主键id',
|
||||
`expand_id` bigint(20) NULL DEFAULT NULL COMMENT '拓展业务id',
|
||||
`primary_field_value` bigint(20) NULL DEFAULT NULL COMMENT '业务主键id',
|
||||
`expand_data` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '拓展业务具体数据',
|
||||
`expand_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '拓展业务具体数据',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
|
@ -384,13 +384,13 @@ CREATE TABLE `sys_expand_data` (
|
|||
CREATE TABLE `sys_expand_field` (
|
||||
`field_id` bigint(20) NOT NULL COMMENT '主键id',
|
||||
`expand_id` bigint(20) NOT NULL COMMENT '对应拓展业务的主键id',
|
||||
`field_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '字段中文名称,例如:身份证号',
|
||||
`field_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '字段英文名称,例如:idCard',
|
||||
`field_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段中文名称,例如:身份证号',
|
||||
`field_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段英文名称,例如:idCard',
|
||||
`field_type` tinyint(4) NULL DEFAULT NULL COMMENT '字段类型:1-字符串类型,2-数字类型,3-字典类型',
|
||||
`field_required` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否必填:Y-必填,N-非必填',
|
||||
`field_required` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否必填:Y-必填,N-非必填',
|
||||
`field_length` int(11) NULL DEFAULT NULL COMMENT '属性值长度,用于数字类型',
|
||||
`field_dict_type_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '字典类型编码,用于字典类型',
|
||||
`list_show_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '列表是否显示:Y-显示,N-不显示',
|
||||
`field_dict_type_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典类型编码,用于字典类型',
|
||||
`list_show_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '列表是否显示:Y-显示,N-不显示',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
|
@ -422,7 +422,7 @@ CREATE TABLE `sys_file_info` (
|
|||
`file_object_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '存储到bucket中的名称,主键id+.后缀',
|
||||
`file_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '存储路径',
|
||||
`secret_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '是否为机密文件,Y-是机密,N-不是机密',
|
||||
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-被删除,N-未删除',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-被删除,N-未删除',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -458,8 +458,8 @@ INSERT INTO `sys_file_storage` VALUES (1479753047148322818, 0x89504E470D0A1A0A00
|
|||
-- ----------------------------
|
||||
CREATE TABLE `sys_group` (
|
||||
`group_id` bigint(20) NOT NULL COMMENT '分组id',
|
||||
`group_biz_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所属业务类别,例如:PROJECT',
|
||||
`group_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分组名称',
|
||||
`group_biz_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属业务类别,例如:PROJECT',
|
||||
`group_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分组名称',
|
||||
`business_id` bigint(20) NULL DEFAULT NULL COMMENT '业务主键id',
|
||||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '所属用户id',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
|
@ -506,10 +506,10 @@ CREATE TABLE `sys_log` (
|
|||
-- ----------------------------
|
||||
CREATE TABLE `sys_login_log` (
|
||||
`llg_id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`llg_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '日志名称',
|
||||
`llg_succeed` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否执行成功',
|
||||
`llg_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '日志名称',
|
||||
`llg_succeed` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否执行成功',
|
||||
`llg_message` text CHARACTER SET utf8 COLLATE utf8_bin NULL COMMENT '具体消息',
|
||||
`llg_ip_address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '登录ip',
|
||||
`llg_ip_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '登录ip',
|
||||
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
PRIMARY KEY (`llg_id`) USING BTREE
|
||||
|
@ -525,25 +525,25 @@ CREATE TABLE `sys_login_log` (
|
|||
CREATE TABLE `sys_menu` (
|
||||
`menu_id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`menu_parent_id` bigint(20) NOT NULL COMMENT '父id,顶级节点的父id是-1',
|
||||
`menu_pids` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '父id集合,中括号包住,逗号分隔',
|
||||
`menu_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '菜单的名称',
|
||||
`menu_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '菜单的编码',
|
||||
`app_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '应用编码',
|
||||
`menu_pids` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '父id集合,中括号包住,逗号分隔',
|
||||
`menu_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单的名称',
|
||||
`menu_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单的编码',
|
||||
`app_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '应用编码',
|
||||
`menu_sort` decimal(10, 2) NOT NULL DEFAULT 100.00 COMMENT '排序',
|
||||
`status_flag` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态:1-启用,2-禁用',
|
||||
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`layui_path` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '菜单的路径,适用于layui-beetl版本',
|
||||
`layui_icon` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '菜单的图标,适用于layui-beetl版本',
|
||||
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`layui_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单的路径,适用于layui-beetl版本',
|
||||
`layui_icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单的图标,适用于layui-beetl版本',
|
||||
`layui_visible` char(1) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT 'Y' COMMENT '是否可见(layui版用):Y-是,N-否',
|
||||
`antdv_router` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '路由地址,浏览器显示的URL,例如/menu,适用于antdvue版本',
|
||||
`antdv_icon` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'icon-default' COMMENT '图标,适用于antdvue版本',
|
||||
`antdv_component` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '前端组件名,适用于antdvue版本',
|
||||
`antdv_router` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由地址,浏览器显示的URL,例如/menu,适用于antdvue版本',
|
||||
`antdv_icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'icon-default' COMMENT '图标,适用于antdvue版本',
|
||||
`antdv_component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '前端组件名,适用于antdvue版本',
|
||||
`antdv_link_open_type` tinyint(4) NULL DEFAULT 0 COMMENT '外部链接打开方式:1-内置打开外链,2-新页面外链,适用于antdvue版本',
|
||||
`antdv_link_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '外部链接地址,适用于antdvue版本',
|
||||
`antdv_active_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用于非菜单显示页面的重定向url设置',
|
||||
`antdv_visible` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT '是否可见(分离版用):Y-是,N-否',
|
||||
`antdv_link_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '外部链接地址,适用于antdvue版本',
|
||||
`antdv_active_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用于非菜单显示页面的重定向url设置',
|
||||
`antdv_visible` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'Y' COMMENT '是否可见(分离版用):Y-是,N-否',
|
||||
`antdv_front_type` tinyint(4) NULL DEFAULT NULL COMMENT '前台还是后台菜单:1-前台,2-后台,3-前后台都显示',
|
||||
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-被删除,N-未删除',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-被删除,N-未删除',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -603,9 +603,9 @@ INSERT INTO `sys_menu` VALUES (1575396079602528258, 1399362846198013953, '[-1],[
|
|||
CREATE TABLE `sys_menu_button` (
|
||||
`button_id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`menu_id` bigint(20) NOT NULL COMMENT '菜单id,按钮需要挂在菜单下',
|
||||
`button_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '按钮的名称',
|
||||
`button_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '按钮的编码',
|
||||
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-被删除,N-未删除',
|
||||
`button_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '按钮的名称',
|
||||
`button_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '按钮的编码',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-被删除,N-未删除',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -697,7 +697,7 @@ CREATE TABLE `sys_menu_resource` (
|
|||
`menu_resource_id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`business_type` int(11) NOT NULL COMMENT '绑定资源的类型,1:菜单,2:菜单下按钮',
|
||||
`business_id` bigint(20) NOT NULL COMMENT '菜单或按钮id',
|
||||
`resource_code` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N' COMMENT '资源的编码',
|
||||
`resource_code` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '资源的编码',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -1054,16 +1054,16 @@ CREATE TABLE `sys_notice` (
|
|||
-- ----------------------------
|
||||
CREATE TABLE `sys_role` (
|
||||
`role_id` bigint(20) NOT NULL COMMENT '主键id',
|
||||
`role_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色名称',
|
||||
`role_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色编码',
|
||||
`role_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称',
|
||||
`role_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色编码',
|
||||
`role_sort` decimal(10, 2) NOT NULL COMMENT '序号',
|
||||
`data_scope_type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '数据范围类型:10-仅本人数据,20-本部门数据,30-本部门及以下数据,40-指定部门数据,50-全部数据',
|
||||
`status_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态:1-启用,2-禁用',
|
||||
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`admin_flag` char(1) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '是否是管理员角色,管理员角色只能管理后台相关菜单',
|
||||
`role_system_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否是系统角色:Y-是,N-否。系统角色不能删除',
|
||||
`role_type_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '字典:角色类型',
|
||||
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-已删除,N-未删除',
|
||||
`role_system_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否是系统角色:Y-是,N-否。系统角色不能删除',
|
||||
`role_type_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典:角色类型',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-已删除,N-未删除',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
|
@ -1166,7 +1166,7 @@ CREATE TABLE `sys_role_menu_button` (
|
|||
`role_button_id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`role_id` bigint(20) NOT NULL COMMENT '角色id',
|
||||
`button_id` bigint(20) NOT NULL COMMENT '按钮id',
|
||||
`button_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '按钮编码',
|
||||
`button_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '按钮编码',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -1270,10 +1270,10 @@ CREATE TABLE `sys_statistics_count` (
|
|||
-- ----------------------------
|
||||
CREATE TABLE `sys_statistics_url` (
|
||||
`stat_url_id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`stat_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '被统计名称',
|
||||
`stat_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '被统计名称',
|
||||
`stat_menu_id` bigint(20) NULL DEFAULT NULL COMMENT '被统计菜单ID',
|
||||
`stat_url` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '被统计的URL',
|
||||
`always_show` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否常驻显示,Y-是,N-否',
|
||||
`stat_url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '被统计的URL',
|
||||
`always_show` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否常驻显示,Y-是,N-否',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
|
@ -1306,10 +1306,10 @@ INSERT INTO `sys_statistics_url` VALUES (1492345345508683793, '我的消息', 13
|
|||
-- ----------------------------
|
||||
CREATE TABLE `sys_theme` (
|
||||
`theme_id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`theme_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主题名称',
|
||||
`theme_value` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主题属性,json格式',
|
||||
`template_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主题模板id',
|
||||
`status_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '是否启用:Y-启用,N-禁用',
|
||||
`theme_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主题名称',
|
||||
`theme_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主题属性,json格式',
|
||||
`template_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主题模板id',
|
||||
`status_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否启用:Y-启用,N-禁用',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -1327,10 +1327,10 @@ INSERT INTO `sys_theme` VALUES (1477272515573542913, 'Guns后台管理系统默
|
|||
-- ----------------------------
|
||||
CREATE TABLE `sys_theme_template` (
|
||||
`template_id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`template_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主题名称',
|
||||
`template_code` varchar(40) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主题编码',
|
||||
`template_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主题名称',
|
||||
`template_code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主题编码',
|
||||
`template_type` tinyint(4) NOT NULL COMMENT '主题类型:1-系统类型,2-业务类型',
|
||||
`status_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '启用状态:Y-启用,N-禁用',
|
||||
`status_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '启用状态:Y-启用,N-禁用',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -1348,12 +1348,12 @@ INSERT INTO `sys_theme_template` VALUES (1477171926286020610, 'Guns后台管理
|
|||
-- ----------------------------
|
||||
CREATE TABLE `sys_theme_template_field` (
|
||||
`field_id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`field_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性名称',
|
||||
`field_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性编码',
|
||||
`field_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性展示类型(字典维护),例如:图片,文本等类型',
|
||||
`field_required` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否必填:Y-必填,N-非必填',
|
||||
`field_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '属性名称',
|
||||
`field_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '属性编码',
|
||||
`field_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '属性展示类型(字典维护),例如:图片,文本等类型',
|
||||
`field_required` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否必填:Y-必填,N-非必填',
|
||||
`field_length` int(11) NULL DEFAULT NULL COMMENT '属性值长度',
|
||||
`field_description` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '属性描述',
|
||||
`field_description` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '属性描述',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -1378,7 +1378,7 @@ INSERT INTO `sys_theme_template_field` VALUES (1477170929413206017, '备案号
|
|||
CREATE TABLE `sys_theme_template_rel` (
|
||||
`relation_id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`template_id` bigint(20) NOT NULL COMMENT '模板主键id',
|
||||
`field_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性编码',
|
||||
`field_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '属性编码',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -1408,7 +1408,7 @@ CREATE TABLE `sys_timers` (
|
|||
`params` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '参数',
|
||||
`job_status` int(11) NULL DEFAULT NULL COMMENT '状态:1-运行,2-停止',
|
||||
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '备注信息',
|
||||
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-被删除,N-未删除',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否删除:Y-被删除,N-未删除',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
|
||||
|
@ -1428,10 +1428,10 @@ INSERT INTO `sys_timers` VALUES (1492358213574615041, '常用功能统计', 'cn.
|
|||
-- ----------------------------
|
||||
CREATE TABLE `sys_translation` (
|
||||
`tran_id` bigint(20) NOT NULL COMMENT '主键id',
|
||||
`tran_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编码',
|
||||
`tran_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '多语言条例名称',
|
||||
`tran_language_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '语种字典',
|
||||
`tran_value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '翻译的值',
|
||||
`tran_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编码',
|
||||
`tran_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '多语言条例名称',
|
||||
`tran_language_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '语种字典',
|
||||
`tran_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '翻译的值',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
|
@ -1544,22 +1544,22 @@ INSERT INTO `sys_translation` VALUES (1355392385093332994, 'BTN_CANCEL', '按钮
|
|||
-- ----------------------------
|
||||
CREATE TABLE `sys_user` (
|
||||
`user_id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`real_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '姓名',
|
||||
`nick_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '昵称',
|
||||
`account` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '账号',
|
||||
`password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '密码,加密方式为BCrypt',
|
||||
`real_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '姓名',
|
||||
`nick_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '昵称',
|
||||
`account` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '账号',
|
||||
`password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码,加密方式为BCrypt',
|
||||
`avatar` bigint(20) NULL DEFAULT NULL COMMENT '头像,存的为文件id',
|
||||
`birthday` date NULL DEFAULT NULL COMMENT '生日',
|
||||
`sex` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '性别:M-男,F-女',
|
||||
`email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱',
|
||||
`phone` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '手机',
|
||||
`tel` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '电话',
|
||||
`super_admin_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N' COMMENT '是否是超级管理员:Y-是,N-否',
|
||||
`sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '性别:M-男,F-女',
|
||||
`email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
|
||||
`phone` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机',
|
||||
`tel` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '电话',
|
||||
`super_admin_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '是否是超级管理员:Y-是,N-否',
|
||||
`status_flag` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态:1-正常,2-冻结',
|
||||
`login_count` int(11) NULL DEFAULT 1 COMMENT '登录次数',
|
||||
`last_login_ip` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '最后登陆IP',
|
||||
`last_login_ip` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '最后登陆IP',
|
||||
`last_login_time` datetime(0) NULL DEFAULT NULL COMMENT '最后登陆时间',
|
||||
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N' COMMENT '删除标记:Y-已删除,N-未删除',
|
||||
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'N' COMMENT '删除标记:Y-已删除,N-未删除',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
||||
|
@ -1672,17 +1672,17 @@ INSERT INTO `sys_user_role` VALUES (1339554696976781379, 1339550467939639299, 13
|
|||
-- ----------------------------
|
||||
CREATE TABLE `toc_customer` (
|
||||
`customer_id` bigint(20) NOT NULL COMMENT '主键id',
|
||||
`account` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '账号',
|
||||
`password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '密码,BCrypt',
|
||||
`account` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '账号',
|
||||
`password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码,BCrypt',
|
||||
`old_password` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '旧密码',
|
||||
`old_password_salt` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '旧的密码盐',
|
||||
`nick_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '昵称(显示名称)',
|
||||
`email` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱',
|
||||
`telephone` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '手机',
|
||||
`nick_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '昵称(显示名称)',
|
||||
`email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
|
||||
`telephone` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机',
|
||||
`verify_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '邮箱或手机验证码',
|
||||
`verified_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '是否已经邮箱或手机验证通过:Y-通过,N-未通过',
|
||||
`verified_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否已经邮箱或手机验证通过:Y-通过,N-未通过',
|
||||
`avatar` bigint(20) NULL DEFAULT NULL COMMENT '用户头像(文件表id)',
|
||||
`avatar_object_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户头像的文件全名',
|
||||
`avatar_object_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户头像的文件全名',
|
||||
`score` int(11) NULL DEFAULT NULL COMMENT '用户积分',
|
||||
`status_flag` tinyint(4) NULL DEFAULT NULL COMMENT '用户状态:1-启用,2-禁用',
|
||||
`secret_key` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '用户秘钥,用在调用会员校验等',
|
||||
|
@ -1701,24 +1701,24 @@ CREATE TABLE `toc_customer` (
|
|||
-- ----------------------------
|
||||
CREATE TABLE `sys_resource` (
|
||||
`resource_id` bigint(20) NOT NULL COMMENT '资源id',
|
||||
`app_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '应用编码',
|
||||
`resource_code` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '资源编码',
|
||||
`resource_name` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '资源名称',
|
||||
`project_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目编码,一般为spring.application.name',
|
||||
`class_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类名称',
|
||||
`method_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '方法名称',
|
||||
`modular_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '资源模块编码,一般为控制器类名排除Controller',
|
||||
`modular_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '资源模块名称,一般为控制器名称',
|
||||
`ip_address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '资源初始化的服务器ip地址',
|
||||
`view_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否是视图类型:Y-是,N-否\r\n如果是视图类型,url需要以 \'/view\' 开头,\r\n视图类型的接口会渲染出html界面,而不是json数据,\r\n视图层一般会在前后端不分离项目出现',
|
||||
`url` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '资源url',
|
||||
`http_method` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'http请求方法',
|
||||
`app_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应用编码',
|
||||
`resource_code` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '资源编码',
|
||||
`resource_name` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '资源名称',
|
||||
`project_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '项目编码,一般为spring.application.name',
|
||||
`class_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类名称',
|
||||
`method_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方法名称',
|
||||
`modular_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资源模块编码,一般为控制器类名排除Controller',
|
||||
`modular_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资源模块名称,一般为控制器名称',
|
||||
`ip_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资源初始化的服务器ip地址',
|
||||
`view_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否是视图类型:Y-是,N-否\r\n如果是视图类型,url需要以 \'/view\' 开头,\r\n视图类型的接口会渲染出html界面,而不是json数据,\r\n视图层一般会在前后端不分离项目出现',
|
||||
`url` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资源url',
|
||||
`http_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'http请求方法',
|
||||
`resource_biz_type` tinyint(4) NULL DEFAULT 1 COMMENT '资源的业务类型:1-业务类,2-系统类',
|
||||
`required_login_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否需要登录:Y-是,N-否',
|
||||
`required_permission_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否需要鉴权:Y-是,N-否',
|
||||
`validate_groups` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '需要进行参数校验的分组',
|
||||
`param_field_descriptions` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '接口参数的字段描述',
|
||||
`response_field_descriptions` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '接口返回结果的字段描述',
|
||||
`required_login_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否需要登录:Y-是,N-否',
|
||||
`required_permission_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否需要鉴权:Y-是,N-否',
|
||||
`validate_groups` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '需要进行参数校验的分组',
|
||||
`param_field_descriptions` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '接口参数的字段描述',
|
||||
`response_field_descriptions` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '接口返回结果的字段描述',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
|
||||
|
@ -1733,7 +1733,7 @@ CREATE TABLE `sys_resource` (
|
|||
CREATE TABLE `sys_role_resource` (
|
||||
`role_resource_id` bigint(20) NOT NULL COMMENT '主键',
|
||||
`role_id` bigint(20) NOT NULL COMMENT '角色id',
|
||||
`resource_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '资源编码',
|
||||
`resource_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '资源编码',
|
||||
`resource_biz_type` tinyint(4) NULL DEFAULT 2 COMMENT '资源的业务类型:1-业务类,2-系统类',
|
||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_user` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
|
||||
|
|
Loading…
Reference in New Issue