数据库内容修改:默认租户的tenant_id由0修改为1
This commit is contained in:
parent
a601c8c54c
commit
3734a6ef23
@ -170,11 +170,12 @@ INSERT INTO `gen_table_column` (`column_id`, `table_id`, `column_name`, `column_
|
||||
(122, 17, 'update_by', '更新者', 'bigint', 'Long', 'updateBy', '0', '0', '0', NULL, NULL, NULL, NULL, 'EQ', 'input', '', 10, 0, 1, '2023-12-04 22:22:22', 0, '2023-12-05 10:50:30'),
|
||||
(123, 17, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, NULL, NULL, NULL, NULL, 'EQ', 'datetime', '', 11, 0, 1, '2023-12-04 22:22:22', 0, '2023-12-05 10:50:30');
|
||||
|
||||
|
||||
-- 导出 表 ruoyi-flex.mf_customer 结构
|
||||
DROP TABLE IF EXISTS `mf_customer`;
|
||||
CREATE TABLE IF NOT EXISTS `mf_customer` (
|
||||
`customer_id` bigint NOT NULL COMMENT '客户id',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`customer_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '客户姓名',
|
||||
`phonenumber` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '手机号码',
|
||||
`gender` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '客户性别',
|
||||
@ -193,7 +194,7 @@ CREATE TABLE IF NOT EXISTS `mf_customer` (
|
||||
DROP TABLE IF EXISTS `mf_goods`;
|
||||
CREATE TABLE IF NOT EXISTS `mf_goods` (
|
||||
`goods_id` bigint NOT NULL COMMENT '商品id',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`customer_id` bigint NOT NULL COMMENT '客户id',
|
||||
`name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '商品名称',
|
||||
`weight` int DEFAULT NULL COMMENT '商品重量',
|
||||
@ -212,7 +213,7 @@ CREATE TABLE IF NOT EXISTS `mf_goods` (
|
||||
DROP TABLE IF EXISTS `mf_product`;
|
||||
CREATE TABLE IF NOT EXISTS `mf_product` (
|
||||
`product_id` bigint NOT NULL COMMENT '产品id',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`parent_id` bigint DEFAULT '0' COMMENT '父产品id',
|
||||
`product_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '产品名称',
|
||||
`order_num` int DEFAULT '0' COMMENT '显示顺序',
|
||||
@ -230,7 +231,7 @@ CREATE TABLE IF NOT EXISTS `mf_product` (
|
||||
DROP TABLE IF EXISTS `mf_student`;
|
||||
CREATE TABLE IF NOT EXISTS `mf_student` (
|
||||
`student_id` bigint NOT NULL COMMENT '编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`student_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '学生名称',
|
||||
`student_age` int DEFAULT NULL COMMENT '年龄',
|
||||
`student_hobby` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '爱好(0代码 1音乐 2电影)',
|
||||
@ -504,7 +505,7 @@ INSERT INTO `sys_client` (`id`, `client_id`, `client_key`, `client_secret`, `gra
|
||||
DROP TABLE IF EXISTS `sys_config`;
|
||||
CREATE TABLE IF NOT EXISTS `sys_config` (
|
||||
`config_id` bigint NOT NULL COMMENT '参数主键',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`config_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '参数名称',
|
||||
`config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '参数键名',
|
||||
`config_value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '参数键值',
|
||||
@ -520,17 +521,17 @@ CREATE TABLE IF NOT EXISTS `sys_config` (
|
||||
|
||||
-- 正在导出表 ruoyi-flex.sys_config 的数据:~24 rows (大约)
|
||||
INSERT INTO `sys_config` (`config_id`, `tenant_id`, `config_name`, `config_key`, `config_value`, `config_type`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1, 0, '主框架页-默认皮肤样式', 'sys.index.skinName', 'skin-blue', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-12 17:56:29', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow'),
|
||||
(2, 0, '用户管理-账号初始密码', 'sys.user.initPassword', '12345678', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-10-16 16:42:05', '初始化密码 12345678'),
|
||||
(3, 0, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '深色主题theme-dark,浅色主题theme-light'),
|
||||
(5, 0, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-13 17:16:25', '是否开启注册用户功能(true开启,false关闭)'),
|
||||
(6, 0, 'OSS预览列表资源开关', 'sys.oss.previewListResource', 'true', 'Y', 0, 1, '2023-09-30 21:55:15', 1, '2023-12-10 19:49:53', 'true:开启, false:关闭');
|
||||
(1, 1, '主框架页-默认皮肤样式', 'sys.index.skinName', 'skin-blue', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-12 17:56:29', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow'),
|
||||
(2, 1, '用户管理-账号初始密码', 'sys.user.initPassword', '12345678', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-10-16 16:42:05', '初始化密码 12345678'),
|
||||
(3, 1, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '深色主题theme-dark,浅色主题theme-light'),
|
||||
(5, 1, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-13 17:16:25', '是否开启注册用户功能(true开启,false关闭)'),
|
||||
(6, 1, 'OSS预览列表资源开关', 'sys.oss.previewListResource', 'true', 'Y', 0, 1, '2023-09-30 21:55:15', 1, '2023-12-10 19:49:53', 'true:开启, false:关闭');
|
||||
|
||||
-- 导出 表 ruoyi-flex.sys_dept 结构
|
||||
DROP TABLE IF EXISTS `sys_dept`;
|
||||
CREATE TABLE IF NOT EXISTS `sys_dept` (
|
||||
`dept_id` bigint NOT NULL COMMENT '部门id',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`parent_id` bigint DEFAULT '0' COMMENT '父部门id',
|
||||
`ancestors` varchar(760) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '祖级列表',
|
||||
`dept_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '部门名称',
|
||||
@ -550,13 +551,13 @@ CREATE TABLE IF NOT EXISTS `sys_dept` (
|
||||
|
||||
-- 正在导出表 ruoyi-flex.sys_dept 的数据:~24 rows (大约)
|
||||
INSERT INTO `sys_dept` (`dept_id`, `tenant_id`, `parent_id`, `ancestors`, `dept_name`, `order_num`, `leader`, `phone`, `email`, `status`, `version`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES
|
||||
(1, 0, 0, '0', 'Ruoyi-Flex公司', 0, 'ruoyi-flex', '18888888888', 'dataprince@foxmail.com', '0', 0, 0, 1, '2023-06-03 21:32:28', 1, '2024-01-07 21:44:45');
|
||||
(1, 1, 0, '0', 'Ruoyi-Flex公司', 0, 'ruoyi-flex', '18888888888', 'dataprince@foxmail.com', '0', 0, 0, 1, '2023-06-03 21:32:28', 1, '2024-01-07 21:44:45');
|
||||
|
||||
-- 导出 表 ruoyi-flex.sys_dict_data 结构
|
||||
DROP TABLE IF EXISTS `sys_dict_data`;
|
||||
CREATE TABLE IF NOT EXISTS `sys_dict_data` (
|
||||
`dict_code` bigint NOT NULL COMMENT '字典编码',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`dict_sort` int DEFAULT '0' COMMENT '字典排序',
|
||||
`dict_label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '字典标签',
|
||||
`dict_value` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '字典键值',
|
||||
@ -575,62 +576,62 @@ CREATE TABLE IF NOT EXISTS `sys_dict_data` (
|
||||
|
||||
-- 正在导出表 ruoyi-flex.sys_dict_data 的数据:~100 rows (大约)
|
||||
INSERT INTO `sys_dict_data` (`dict_code`, `tenant_id`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1, 0, 1, '男', '0', 'sys_user_gender', '', '', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '性别男'),
|
||||
(2, 0, 2, '女', '1', 'sys_user_gender', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '性别女'),
|
||||
(3, 0, 3, '未知', '2', 'sys_user_gender', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '性别未知'),
|
||||
(4, 0, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '显示菜单'),
|
||||
(5, 0, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '隐藏菜单'),
|
||||
(6, 0, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(7, 0, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态'),
|
||||
(8, 0, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(9, 0, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态'),
|
||||
(10, 0, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '默认分组'),
|
||||
(11, 0, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统分组'),
|
||||
(12, 0, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统默认是'),
|
||||
(13, 0, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统默认否'),
|
||||
(14, 0, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知'),
|
||||
(15, 0, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '公告'),
|
||||
(16, 0, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(17, 0, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '关闭状态'),
|
||||
(18, 0, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '其他操作'),
|
||||
(19, 0, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '新增操作'),
|
||||
(20, 0, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '修改操作'),
|
||||
(21, 0, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '删除操作'),
|
||||
(22, 0, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '授权操作'),
|
||||
(23, 0, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '导出操作'),
|
||||
(24, 0, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '导入操作'),
|
||||
(25, 0, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '强退操作'),
|
||||
(26, 0, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '生成操作'),
|
||||
(27, 0, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '清空操作'),
|
||||
(28, 0, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(29, 0, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态'),
|
||||
(30, 0, 1, '密码认证', 'password', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '密码认证'),
|
||||
(31, 0, 2, '短信认证', 'sms', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '短信认证'),
|
||||
(32, 0, 3, '邮件认证', 'email', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '邮件认证'),
|
||||
(33, 0, 4, '小程序认证', 'xcx', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '小程序认证'),
|
||||
(34, 0, 5, '三方登录认证', 'social', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '三方登录认证'),
|
||||
(35, 0, 1, 'PC', 'pc', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', 'PC'),
|
||||
(36, 0, 2, '安卓', 'android', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', '安卓'),
|
||||
(37, 0, 3, 'iOS', 'ios', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', 'iOS'),
|
||||
(38, 0, 4, '小程序', 'xcx', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', '小程序'),
|
||||
(100, 0, 0, '正常', '0', 'sys_student_status', NULL, 'primary', 'N', 0, 1, '2023-06-03 21:53:50', 1, '2023-06-03 21:55:24', NULL),
|
||||
(101, 0, 0, '停用', '1', 'sys_student_status', NULL, 'danger', 'N', 0, 1, '2023-06-03 21:54:11', 1, '2023-06-03 21:55:31', NULL),
|
||||
(102, 0, 0, '代码', '0', 'sys_student_hobby', NULL, 'primary', 'N', 0, 1, '2023-06-04 16:40:02', 1, NULL, NULL),
|
||||
(103, 0, 0, '音乐', '1', 'sys_student_hobby', NULL, 'success', 'N', 0, 1, '2023-06-04 16:40:24', 1, NULL, NULL),
|
||||
(104, 0, 0, '电影', '2', 'sys_student_hobby', NULL, 'warning', 'N', 0, 1, '2023-06-04 16:40:40', 1, '2023-06-04 16:40:49', NULL),
|
||||
(105, 0, 0, '计算机', '1', 'sys_goods_type', NULL, 'primary', 'N', 0, 1, '2023-06-05 07:23:48', 1, NULL, NULL),
|
||||
(106, 0, 0, '打印设备', '2', 'sys_goods_type', NULL, 'success', 'N', 0, 1, '2023-06-05 07:24:14', 1, NULL, NULL),
|
||||
(107, 0, 3, '衣服', '3', 'sys_goods_type', NULL, 'info', 'N', 0, 1, '2023-06-05 07:24:35', 1, NULL, NULL),
|
||||
(111, 0, 4, '网络设备', '4', 'sys_goods_type', NULL, 'default', NULL, 0, 1, '2023-09-19 17:31:46', 1, '2023-09-19 17:31:46', NULL),
|
||||
(65923231885905920, 0, 1, '桌面微机', 'PC', 'sys_app_type', NULL, 'default', 'N', 4, 1, '2023-10-01 10:56:23', 1, '2024-01-07 20:11:33', ''),
|
||||
(65923379802230784, 0, 2, '平板', 'pad', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:56:59', 1, '2023-10-01 10:56:59', NULL),
|
||||
(65923470604718080, 0, 3, '手机', 'phone', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:57:20', 1, '2023-10-01 10:57:20', NULL);
|
||||
(1, 1, 1, '男', '0', 'sys_user_gender', '', '', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '性别男'),
|
||||
(2, 1, 2, '女', '1', 'sys_user_gender', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '性别女'),
|
||||
(3, 1, 3, '未知', '2', 'sys_user_gender', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '性别未知'),
|
||||
(4, 1, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '显示菜单'),
|
||||
(5, 1, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '隐藏菜单'),
|
||||
(6, 1, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(7, 1, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态'),
|
||||
(8, 1, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(9, 1, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态'),
|
||||
(10, 1, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '默认分组'),
|
||||
(11, 1, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统分组'),
|
||||
(12, 1, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统默认是'),
|
||||
(13, 1, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统默认否'),
|
||||
(14, 1, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知'),
|
||||
(15, 1, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '公告'),
|
||||
(16, 1, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(17, 1, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '关闭状态'),
|
||||
(18, 1, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '其他操作'),
|
||||
(19, 1, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '新增操作'),
|
||||
(20, 1, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '修改操作'),
|
||||
(21, 1, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '删除操作'),
|
||||
(22, 1, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '授权操作'),
|
||||
(23, 1, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '导出操作'),
|
||||
(24, 1, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '导入操作'),
|
||||
(25, 1, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '强退操作'),
|
||||
(26, 1, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '生成操作'),
|
||||
(27, 1, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '清空操作'),
|
||||
(28, 1, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(29, 1, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态'),
|
||||
(30, 1, 1, '密码认证', 'password', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '密码认证'),
|
||||
(31, 1, 2, '短信认证', 'sms', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '短信认证'),
|
||||
(32, 1, 3, '邮件认证', 'email', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '邮件认证'),
|
||||
(33, 1, 4, '小程序认证', 'xcx', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '小程序认证'),
|
||||
(34, 1, 5, '三方登录认证', 'social', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '三方登录认证'),
|
||||
(35, 1, 1, 'PC', 'pc', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', 'PC'),
|
||||
(36, 1, 2, '安卓', 'android', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', '安卓'),
|
||||
(37, 1, 3, 'iOS', 'ios', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', 'iOS'),
|
||||
(38, 1, 4, '小程序', 'xcx', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', '小程序'),
|
||||
(100, 1, 0, '正常', '0', 'sys_student_status', NULL, 'primary', 'N', 0, 1, '2023-06-03 21:53:50', 1, '2023-06-03 21:55:24', NULL),
|
||||
(101, 1, 0, '停用', '1', 'sys_student_status', NULL, 'danger', 'N', 0, 1, '2023-06-03 21:54:11', 1, '2023-06-03 21:55:31', NULL),
|
||||
(102, 1, 0, '代码', '0', 'sys_student_hobby', NULL, 'primary', 'N', 0, 1, '2023-06-04 16:40:02', 1, NULL, NULL),
|
||||
(103, 1, 0, '音乐', '1', 'sys_student_hobby', NULL, 'success', 'N', 0, 1, '2023-06-04 16:40:24', 1, NULL, NULL),
|
||||
(104, 1, 0, '电影', '2', 'sys_student_hobby', NULL, 'warning', 'N', 0, 1, '2023-06-04 16:40:40', 1, '2023-06-04 16:40:49', NULL),
|
||||
(105, 1, 0, '计算机', '1', 'sys_goods_type', NULL, 'primary', 'N', 0, 1, '2023-06-05 07:23:48', 1, NULL, NULL),
|
||||
(106, 1, 0, '打印设备', '2', 'sys_goods_type', NULL, 'success', 'N', 0, 1, '2023-06-05 07:24:14', 1, NULL, NULL),
|
||||
(107, 1, 3, '衣服', '3', 'sys_goods_type', NULL, 'info', 'N', 0, 1, '2023-06-05 07:24:35', 1, NULL, NULL),
|
||||
(111, 1, 4, '网络设备', '4', 'sys_goods_type', NULL, 'default', NULL, 0, 1, '2023-09-19 17:31:46', 1, '2023-09-19 17:31:46', NULL),
|
||||
(65923231885905920, 1, 1, '桌面微机', 'PC', 'sys_app_type', NULL, 'default', 'N', 4, 1, '2023-10-01 10:56:23', 1, '2024-01-07 20:11:33', ''),
|
||||
(65923379802230784, 1, 2, '平板', 'pad', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:56:59', 1, '2023-10-01 10:56:59', NULL),
|
||||
(65923470604718080, 1, 3, '手机', 'phone', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:57:20', 1, '2023-10-01 10:57:20', NULL);
|
||||
|
||||
-- 导出 表 ruoyi-flex.sys_dict_type 结构
|
||||
DROP TABLE IF EXISTS `sys_dict_type`;
|
||||
CREATE TABLE IF NOT EXISTS `sys_dict_type` (
|
||||
`dict_id` bigint NOT NULL COMMENT '字典主键',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`dict_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '字典名称',
|
||||
`dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '字典类型',
|
||||
`version` int DEFAULT '0' COMMENT '乐观锁',
|
||||
@ -645,28 +646,28 @@ CREATE TABLE IF NOT EXISTS `sys_dict_type` (
|
||||
|
||||
-- 正在导出表 ruoyi-flex.sys_dict_type 的数据:~32 rows (大约)
|
||||
INSERT INTO `sys_dict_type` (`dict_id`, `tenant_id`, `dict_name`, `dict_type`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1, 0, '用户性别', 'sys_user_gender', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '用户性别列表'),
|
||||
(2, 0, '菜单状态', 'sys_show_hide', 0, 1, '2023-06-03 21:32:30', 1, NULL, '菜单状态列表'),
|
||||
(3, 0, '系统开关', 'sys_normal_disable', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统开关列表'),
|
||||
(4, 0, '任务状态', 'sys_job_status', 0, 1, '2023-06-03 21:32:30', 1, NULL, '任务状态列表'),
|
||||
(5, 0, '任务分组', 'sys_job_group', 0, 1, '2023-06-03 21:32:30', 1, NULL, '任务分组列表'),
|
||||
(6, 0, '系统是否', 'sys_yes_no', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统是否列表'),
|
||||
(7, 0, '通知类型', 'sys_notice_type', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知类型列表'),
|
||||
(8, 0, '通知状态', 'sys_notice_status', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知状态列表'),
|
||||
(9, 0, '操作类型', 'sys_oper_type', 0, 1, '2023-06-03 21:32:30', 1, NULL, '操作类型列表'),
|
||||
(10, 0, '系统状态', 'sys_common_status', 0, 1, '2023-06-03 21:32:30', 1, NULL, '登录状态列表'),
|
||||
(11, 0, '授权类型', 'sys_grant_type', 0, 1, '2023-10-21 11:06:33', 1, '2023-10-21 11:06:33', '认证授权类型'),
|
||||
(12, 0, '设备类型', 'sys_device_type', 0, 1, '2023-10-21 11:38:41', 1, '2023-10-21 11:38:41', '客户端设备类型'),
|
||||
(100, 0, '学生状态', 'sys_student_status', 0, 1, '2023-06-03 21:52:47', 1, '2023-06-03 21:53:09', NULL),
|
||||
(101, 0, '爱好', 'sys_student_hobby', 0, 1, '2023-06-04 16:39:16', 1, NULL, NULL),
|
||||
(102, 0, '商品种类', 'sys_goods_type', 0, 1, '2023-06-05 07:23:20', 1, NULL, NULL),
|
||||
(65922863223361536, 0, '系统类型', 'sys_app_type', 4, 1, '2023-10-01 10:54:55', 1, '2024-01-07 20:12:00', '系统类型列表');
|
||||
(1, 1, '用户性别', 'sys_user_gender', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '用户性别列表'),
|
||||
(2, 1, '菜单状态', 'sys_show_hide', 0, 1, '2023-06-03 21:32:30', 1, NULL, '菜单状态列表'),
|
||||
(3, 1, '系统开关', 'sys_normal_disable', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统开关列表'),
|
||||
(4, 1, '任务状态', 'sys_job_status', 0, 1, '2023-06-03 21:32:30', 1, NULL, '任务状态列表'),
|
||||
(5, 1, '任务分组', 'sys_job_group', 0, 1, '2023-06-03 21:32:30', 1, NULL, '任务分组列表'),
|
||||
(6, 1, '系统是否', 'sys_yes_no', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统是否列表'),
|
||||
(7, 1, '通知类型', 'sys_notice_type', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知类型列表'),
|
||||
(8, 1, '通知状态', 'sys_notice_status', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知状态列表'),
|
||||
(9, 1, '操作类型', 'sys_oper_type', 0, 1, '2023-06-03 21:32:30', 1, NULL, '操作类型列表'),
|
||||
(10, 1, '系统状态', 'sys_common_status', 0, 1, '2023-06-03 21:32:30', 1, NULL, '登录状态列表'),
|
||||
(11, 1, '授权类型', 'sys_grant_type', 0, 1, '2023-10-21 11:06:33', 1, '2023-10-21 11:06:33', '认证授权类型'),
|
||||
(12, 1, '设备类型', 'sys_device_type', 0, 1, '2023-10-21 11:38:41', 1, '2023-10-21 11:38:41', '客户端设备类型'),
|
||||
(100, 1, '学生状态', 'sys_student_status', 0, 1, '2023-06-03 21:52:47', 1, '2023-06-03 21:53:09', NULL),
|
||||
(101, 1, '爱好', 'sys_student_hobby', 0, 1, '2023-06-04 16:39:16', 1, NULL, NULL),
|
||||
(102, 1, '商品种类', 'sys_goods_type', 0, 1, '2023-06-05 07:23:20', 1, NULL, NULL),
|
||||
(65922863223361536, 1, '系统类型', 'sys_app_type', 4, 1, '2023-10-01 10:54:55', 1, '2024-01-07 20:12:00', '系统类型列表');
|
||||
|
||||
-- 导出 表 ruoyi-flex.sys_logininfor 结构
|
||||
DROP TABLE IF EXISTS `sys_logininfor`;
|
||||
CREATE TABLE IF NOT EXISTS `sys_logininfor` (
|
||||
`info_id` bigint NOT NULL COMMENT '访问ID',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '用户账号',
|
||||
`client_key` varchar(32) COLLATE utf8mb4_bin DEFAULT '' COMMENT '客户端',
|
||||
`device_type` varchar(32) COLLATE utf8mb4_bin DEFAULT '' COMMENT '设备类型',
|
||||
@ -863,7 +864,7 @@ INSERT INTO `sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`
|
||||
DROP TABLE IF EXISTS `sys_notice`;
|
||||
CREATE TABLE IF NOT EXISTS `sys_notice` (
|
||||
`notice_id` bigint NOT NULL COMMENT '公告ID',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`notice_title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '公告标题',
|
||||
`notice_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '公告类型(1通知 2公告)',
|
||||
`notice_content` longblob COMMENT '公告内容',
|
||||
@ -881,7 +882,7 @@ CREATE TABLE IF NOT EXISTS `sys_notice` (
|
||||
DROP TABLE IF EXISTS `sys_oper_log`;
|
||||
CREATE TABLE IF NOT EXISTS `sys_oper_log` (
|
||||
`oper_id` bigint NOT NULL COMMENT '日志主键',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '模块标题',
|
||||
`business_type` int DEFAULT '0' COMMENT '业务类型(0其它 1新增 2修改 3删除)',
|
||||
`method` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '方法名称',
|
||||
@ -908,7 +909,7 @@ CREATE TABLE IF NOT EXISTS `sys_oper_log` (
|
||||
DROP TABLE IF EXISTS `sys_oss`;
|
||||
CREATE TABLE IF NOT EXISTS `sys_oss` (
|
||||
`oss_id` bigint NOT NULL COMMENT '对象存储主键',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '文件名',
|
||||
`original_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '原名',
|
||||
`file_suffix` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '文件后缀名',
|
||||
@ -926,7 +927,7 @@ CREATE TABLE IF NOT EXISTS `sys_oss` (
|
||||
DROP TABLE IF EXISTS `sys_oss_config`;
|
||||
CREATE TABLE IF NOT EXISTS `sys_oss_config` (
|
||||
`oss_config_id` bigint NOT NULL COMMENT '主建',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`config_key` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '配置key',
|
||||
`access_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT 'accessKey',
|
||||
`secret_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '秘钥',
|
||||
@ -950,17 +951,17 @@ CREATE TABLE IF NOT EXISTS `sys_oss_config` (
|
||||
|
||||
-- 正在导出表 ruoyi-flex.sys_oss_config 的数据:~8 rows (大约)
|
||||
INSERT INTO `sys_oss_config` (`oss_config_id`, `tenant_id`, `config_key`, `access_key`, `secret_key`, `bucket_name`, `prefix`, `endpoint`, `domain`, `is_https`, `region`, `access_policy`, `status`, `ext1`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1, 0, 'minio', 'ruoyi-flex', 'ruoyi-flex@369', 'ruoyi-flex', '', '127.0.0.1:9000', '', 'N', '', '1', '0', '', 4, 1, '2023-11-30 11:54:13', 1, '2024-01-07 19:53:44', ''),
|
||||
(2, 0, 'qiniu', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-flex', '', 's3-cn-north-1.qiniucs.com', '', 'N', '', '1', '1', '', 0, 1, '2023-11-30 11:54:13', 1, '2023-12-01 14:25:43', NULL),
|
||||
(3, 0, 'aliyun', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-flex', '', 'oss-cn-beijing.aliyuncs.com', '', 'N', '', '1', '1', '', 0, 1, '2023-11-30 11:54:13', 1, '2023-12-01 14:25:48', NULL),
|
||||
(4, 0, 'qcloud', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-flex', '', 'cos.ap-beijing.myqcloud.com', '', 'N', '', '1', '1', '', 0, 1, '2023-11-30 11:54:13', 1, '2023-12-01 14:26:02', NULL);
|
||||
(1, 1, 'minio', 'ruoyi-flex', 'ruoyi-flex@369', 'ruoyi-flex', '', '127.0.0.1:9000', '', 'N', '', '1', '0', '', 4, 1, '2023-11-30 11:54:13', 1, '2024-01-07 19:53:44', ''),
|
||||
(2, 1, 'qiniu', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-flex', '', 's3-cn-north-1.qiniucs.com', '', 'N', '', '1', '1', '', 0, 1, '2023-11-30 11:54:13', 1, '2023-12-01 14:25:43', NULL),
|
||||
(3, 1, 'aliyun', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-flex', '', 'oss-cn-beijing.aliyuncs.com', '', 'N', '', '1', '1', '', 0, 1, '2023-11-30 11:54:13', 1, '2023-12-01 14:25:48', NULL),
|
||||
(4, 1, 'qcloud', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-flex', '', 'cos.ap-beijing.myqcloud.com', '', 'N', '', '1', '1', '', 0, 1, '2023-11-30 11:54:13', 1, '2023-12-01 14:26:02', NULL);
|
||||
|
||||
|
||||
-- 导出 表 ruoyi-flex.sys_post 结构
|
||||
DROP TABLE IF EXISTS `sys_post`;
|
||||
CREATE TABLE IF NOT EXISTS `sys_post` (
|
||||
`post_id` bigint NOT NULL COMMENT '岗位ID',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`post_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '岗位编码',
|
||||
`post_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '岗位名称',
|
||||
`post_sort` int NOT NULL COMMENT '显示顺序',
|
||||
@ -976,17 +977,17 @@ CREATE TABLE IF NOT EXISTS `sys_post` (
|
||||
|
||||
-- 正在导出表 ruoyi-flex.sys_post 的数据:~5 rows (大约)
|
||||
INSERT INTO `sys_post` (`post_id`, `tenant_id`, `post_code`, `post_name`, `post_sort`, `status`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1, 0, 'ceo', '董事长', 1, '0', 0, 1, '2023-06-03 21:32:28', 1, '2023-09-02 15:43:55', ''),
|
||||
(2, 0, 'se', '项目经理', 2, '0', 0, 1, '2023-06-03 21:32:28', 1, NULL, ''),
|
||||
(3, 0, 'hr', '人力资源', 3, '0', 0, 1, '2023-06-03 21:32:28', 1, NULL, ''),
|
||||
(4, 0, 'users', '普通员工', 4, '0', 0, 1, '2023-06-03 21:32:28', 1, '2023-07-13 21:30:24', ''),
|
||||
(65917508166729728, 0, 'deptLeader', '部门管理岗', 6, '0', 1, 1, '2023-10-01 10:33:39', 1, '2024-01-07 21:42:57', '部门负责人岗位');
|
||||
(1, 1, 'ceo', '董事长', 1, '0', 0, 1, '2023-06-03 21:32:28', 1, '2023-09-02 15:43:55', ''),
|
||||
(2, 1, 'se', '项目经理', 2, '0', 0, 1, '2023-06-03 21:32:28', 1, NULL, ''),
|
||||
(3, 1, 'hr', '人力资源', 3, '0', 0, 1, '2023-06-03 21:32:28', 1, NULL, ''),
|
||||
(4, 1, 'users', '普通员工', 4, '0', 0, 1, '2023-06-03 21:32:28', 1, '2023-07-13 21:30:24', ''),
|
||||
(65917508166729728, 1, 'deptLeader', '部门管理岗', 6, '0', 1, 1, '2023-10-01 10:33:39', 1, '2024-01-07 21:42:57', '部门负责人岗位');
|
||||
|
||||
-- 导出 表 ruoyi-flex.sys_role 结构
|
||||
DROP TABLE IF EXISTS `sys_role`;
|
||||
CREATE TABLE IF NOT EXISTS `sys_role` (
|
||||
`role_id` bigint NOT NULL COMMENT '角色ID',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户编号',
|
||||
`role_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '角色名称',
|
||||
`role_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '角色权限字符串',
|
||||
`role_sort` int NOT NULL COMMENT '显示顺序',
|
||||
@ -1006,7 +1007,7 @@ CREATE TABLE IF NOT EXISTS `sys_role` (
|
||||
|
||||
-- 正在导出表 ruoyi-flex.sys_role 的数据:~10 rows (大约)
|
||||
INSERT INTO `sys_role` (`role_id`, `tenant_id`, `role_name`, `role_key`, `role_sort`, `data_scope`, `menu_check_strictly`, `dept_check_strictly`, `status`, `version`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1, 0, '超级管理员角色', 'admin', 1, '1', 1, 1, '0', 0, 0, 1, '2023-06-03 21:32:28', 1, NULL, '超级管理员');
|
||||
(1, 1, '超级管理员角色', 'admin', 1, '1', 1, 1, '0', 0, 0, 1, '2023-06-03 21:32:28', 1, NULL, '超级管理员');
|
||||
|
||||
-- 导出 表 ruoyi-flex.sys_role_dept 结构
|
||||
DROP TABLE IF EXISTS `sys_role_dept`;
|
||||
@ -1032,7 +1033,7 @@ create table sys_social
|
||||
(
|
||||
social_id bigint not null comment '主键',
|
||||
user_id bigint not null comment '用户ID',
|
||||
tenant_id varchar(20) default null comment '租户id',
|
||||
tenant_id varchar(20) DEFAULT '1' comment '租户id',
|
||||
auth_id varchar(255) not null comment '平台+平台唯一id',
|
||||
source varchar(255) not null comment '用户来源',
|
||||
open_id varchar(255) default null comment '平台编号唯一id',
|
||||
@ -1089,7 +1090,7 @@ CREATE TABLE IF NOT EXISTS `sys_tenant` (
|
||||
|
||||
-- 正在导出表 ruoyi-flex.sys_tenant 的数据:~2 rows (大约)
|
||||
INSERT INTO `sys_tenant` (`tenant_id`, `contact_user_name`, `contact_phone`, `company_name`, `license_number`, `address`, `intro`, `domain`, `remark`, `package_id`, `expire_time`, `account_count`, `version`, `status`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES
|
||||
(0, '联系人', '16888888888', 'Ruoyi-Flex公司', NULL, NULL, 'RuoYi-Flex多租户通用后台管理管理系统', NULL, NULL, NULL, NULL, -1, 0, '0', 0, 1, '2024-01-03 20:08:03', NULL, NULL);
|
||||
(1, '联系人', '16888888888', 'Ruoyi-Flex公司', NULL, NULL, 'RuoYi-Flex多租户通用后台管理管理系统', NULL, NULL, NULL, NULL, -1, 0, '0', 0, 1, '2024-01-03 20:08:03', NULL, NULL);
|
||||
|
||||
|
||||
-- 导出 表 ruoyi-flex.sys_tenant_package 结构
|
||||
@ -1114,7 +1115,7 @@ CREATE TABLE IF NOT EXISTS `sys_tenant_package` (
|
||||
DROP TABLE IF EXISTS `sys_user`;
|
||||
CREATE TABLE IF NOT EXISTS `sys_user` (
|
||||
`user_id` bigint NOT NULL COMMENT '用户ID',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户主键',
|
||||
`tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户主键',
|
||||
`dept_id` bigint DEFAULT NULL COMMENT '部门ID',
|
||||
`user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '用户账号',
|
||||
`nick_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '用户昵称',
|
||||
@ -1140,7 +1141,7 @@ CREATE TABLE IF NOT EXISTS `sys_user` (
|
||||
|
||||
-- 正在导出表 ruoyi-flex.sys_user 的数据:~13 rows (大约)
|
||||
INSERT INTO `sys_user` (`user_id`, `tenant_id`, `dept_id`, `user_name`, `nick_name`, `user_type`, `email`, `phonenumber`, `gender`, `avatar`, `password`, `status`, `version`, `del_flag`, `login_ip`, `login_date`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1, 0, 1, 'superadmin', '超级管理员', 'sys_user', 'ry@163.com', '15888888888', '1', NULL, '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', 8, 0, '0:0:0:0:0:0:0:1', '2024-01-08 10:51:57', 1, '2023-06-03 21:32:28', 1, '2024-01-08 10:51:57', '管理员');
|
||||
(1, 1, 1, 'superadmin', '超级管理员', 'sys_user', 'ry@163.com', '15888888888', '1', NULL, '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', 8, 0, '0:0:0:0:0:0:0:1', '2024-01-08 10:51:57', 1, '2023-06-03 21:32:28', 1, '2024-01-08 10:51:57', '管理员');
|
||||
|
||||
-- 导出 表 ruoyi-flex.sys_user_post 结构
|
||||
DROP TABLE IF EXISTS `sys_user_post`;
|
||||
|
@ -37,3 +37,23 @@ create table sys_social
|
||||
update_time datetime comment '更新时间',
|
||||
PRIMARY KEY (social_id)
|
||||
) engine=innodb comment = '社会化关系表';
|
||||
|
||||
-- tenant_id由0修改为1
|
||||
UPDATE `sys_tenant` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `mf_customer` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `mf_goods` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `mf_product` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `mf_student` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `sys_config` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `sys_dept` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `sys_dict_data` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `sys_dict_type` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `sys_logininfor` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `sys_notice` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `sys_oper_log` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `sys_oss` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `sys_oss_config` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `sys_post` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `sys_role` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `sys_social` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
UPDATE `sys_user` SET `tenant_id`=1 WHERE `tenant_id`=0;
|
||||
|
@ -228,7 +228,7 @@ INSERT INTO gen_table_column VALUES
|
||||
drop table if exists mf_student;
|
||||
create table if not exists mf_student (
|
||||
student_id bigint NOT NULL,
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '0',
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '1',
|
||||
student_name varchar(30) not null,
|
||||
student_age integer,
|
||||
student_hobby varchar(30) not null,
|
||||
@ -262,7 +262,7 @@ comment on column mf_student.update_time is '更新时间';
|
||||
drop table if exists mf_product;
|
||||
create table if not exists mf_product (
|
||||
product_id bigint NOT NULL,
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '0',
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '1',
|
||||
parent_id bigint NULL DEFAULT 0,
|
||||
product_name varchar(30) NOT NULL,
|
||||
order_num INTEGER DEFAULT 0,
|
||||
@ -292,7 +292,7 @@ comment on column mf_product.update_time is '更新时间';
|
||||
drop table if exists mf_customer;
|
||||
create table if not exists mf_customer (
|
||||
customer_id bigint NOT NULL,
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '0',
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '1',
|
||||
customer_name varchar(30) not null DEFAULT '',
|
||||
phonenumber varchar(11) NULL DEFAULT NULL,
|
||||
gender char(1) NULL DEFAULT NULL,
|
||||
@ -324,13 +324,14 @@ comment on column mf_customer.update_time is '更新时间';
|
||||
DROP TABLE IF EXISTS mf_goods;
|
||||
CREATE TABLE IF NOT EXISTS mf_goods (
|
||||
goods_id bigint NOT NULL,
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '0',
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '1',
|
||||
customer_id bigint NOT NULL,
|
||||
name varchar(30) NULL DEFAULT NULL,
|
||||
weight INTEGER NULL DEFAULT 0,
|
||||
price decimal(6,2) NULL DEFAULT NULL,
|
||||
"date" timestamp NULL DEFAULT NULL,
|
||||
"type" char(1) NULL DEFAULT NULL,
|
||||
"version" INTEGER NOT NULL DEFAULT 0,
|
||||
create_by BIGINT NULL DEFAULT NULL,
|
||||
create_time TIMESTAMP NULL DEFAULT NULL,
|
||||
update_by BIGINT NULL DEFAULT NULL,
|
||||
@ -346,6 +347,7 @@ comment on column mf_goods.weight is '商品重量';
|
||||
comment on column mf_goods.price is '商品价格';
|
||||
comment on column mf_goods."date" is '商品时间';
|
||||
comment on column mf_goods."type" is '商品种类';
|
||||
COMMENT ON COLUMN "mf_goods"."version" IS '乐观锁';
|
||||
comment on column mf_goods.create_by is '创建者';
|
||||
comment on column mf_goods.create_time is '创建时间';
|
||||
comment on column mf_goods.update_by is '更新者';
|
||||
@ -643,7 +645,7 @@ drop table if exists sys_config;
|
||||
create table if not exists sys_config
|
||||
(
|
||||
config_id bigint NOT NULL,
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '0',
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '1',
|
||||
config_name varchar(100) default ''::varchar,
|
||||
config_key varchar(100) default ''::varchar,
|
||||
config_value varchar(500) default ''::varchar,
|
||||
@ -671,17 +673,17 @@ comment on column sys_config.update_by is '更新者';
|
||||
comment on column sys_config.update_time is '更新时间';
|
||||
comment on column sys_config.remark is '备注';
|
||||
|
||||
insert into sys_config values(1,0, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 0,1, now(), null, null, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow' );
|
||||
insert into sys_config values(2,0, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 0,1, now(), null, null, '初始化密码 123456' );
|
||||
insert into sys_config values(3,0, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 0,1, now(), null, null, '深色主题theme-dark,浅色主题theme-light' );
|
||||
insert into sys_config values(5,0, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 0,1, now(), null, null, '是否开启注册用户功能(true开启,false关闭)');
|
||||
insert into sys_config values(6,0, 'OSS预览列表资源开关', 'sys.oss.previewListResource', 'true', 'Y', 0,1, now(), null, null, 'true:开启, false:关闭');
|
||||
insert into sys_config values(1,1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 0,1, now(), null, null, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow' );
|
||||
insert into sys_config values(2,1, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 0,1, now(), null, null, '初始化密码 123456' );
|
||||
insert into sys_config values(3,1, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 0,1, now(), null, null, '深色主题theme-dark,浅色主题theme-light' );
|
||||
insert into sys_config values(5,1, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 0,1, now(), null, null, '是否开启注册用户功能(true开启,false关闭)');
|
||||
insert into sys_config values(6,1, 'OSS预览列表资源开关', 'sys.oss.previewListResource', 'true', 'Y', 0,1, now(), null, null, 'true:开启, false:关闭');
|
||||
|
||||
drop table if exists sys_dept;
|
||||
create table if not exists sys_dept
|
||||
(
|
||||
dept_id bigint NOT NULL,
|
||||
tenant_id bigint default 0,
|
||||
tenant_id bigint default 1,
|
||||
parent_id bigint default 0,
|
||||
ancestors varchar(760) default ''::varchar,
|
||||
dept_name varchar(30) default ''::varchar,
|
||||
@ -718,14 +720,14 @@ comment on column sys_dept.update_by is '更新者';
|
||||
comment on column sys_dept.update_time is '更新时间';
|
||||
|
||||
INSERT INTO sys_dept VALUES
|
||||
(1, 0, 0, '0', 'Ruoyi-Flex公司', 0, 'ruoyi-flex', '18888888888', 'dataprince@foxmail.com', '0', 0, 0, 1, '2023-06-03 21:32:28', 1, '2023-09-25 20:21:11');
|
||||
(1, 1, 0, '0', 'Ruoyi-Flex公司', 0, 'ruoyi-flex', '18888888888', 'dataprince@foxmail.com', '0', 0, 0, 1, '2023-06-03 21:32:28', 1, '2023-09-25 20:21:11');
|
||||
|
||||
|
||||
drop table if exists sys_dict_data;
|
||||
create table if not exists sys_dict_data
|
||||
(
|
||||
dict_code bigint NOT NULL,
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '0',
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '1',
|
||||
dict_sort INTEGER default 0,
|
||||
dict_label varchar(100) default ''::varchar,
|
||||
dict_value varchar(100) default ''::varchar,
|
||||
@ -760,62 +762,62 @@ comment on column sys_dict_data.update_time is '更新时间';
|
||||
comment on column sys_dict_data.remark is '备注';
|
||||
|
||||
INSERT INTO "sys_dict_data" ("dict_code", "tenant_id", "dict_sort", "dict_label", "dict_value", "dict_type", "css_class", "list_class", "is_default", "version", "create_by", "create_time", "update_by", "update_time", "remark") VALUES
|
||||
(1, 0, 1, '男', '0', 'sys_user_gender', '', '', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '性别男'),
|
||||
(2, 0, 2, '女', '1', 'sys_user_gender', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '性别女'),
|
||||
(3, 0, 3, '未知', '2', 'sys_user_gender', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '性别未知'),
|
||||
(4, 0, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '显示菜单'),
|
||||
(5, 0, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '隐藏菜单'),
|
||||
(6, 0, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(7, 0, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态'),
|
||||
(8, 0, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(9, 0, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态'),
|
||||
(10, 0, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '默认分组'),
|
||||
(11, 0, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统分组'),
|
||||
(12, 0, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统默认是'),
|
||||
(13, 0, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统默认否'),
|
||||
(14, 0, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知'),
|
||||
(15, 0, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '公告'),
|
||||
(16, 0, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(17, 0, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '关闭状态'),
|
||||
(18, 0, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '其他操作'),
|
||||
(19, 0, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '新增操作'),
|
||||
(20, 0, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '修改操作'),
|
||||
(21, 0, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '删除操作'),
|
||||
(22, 0, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '授权操作'),
|
||||
(23, 0, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '导出操作'),
|
||||
(24, 0, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '导入操作'),
|
||||
(25, 0, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '强退操作'),
|
||||
(26, 0, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '生成操作'),
|
||||
(27, 0, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '清空操作'),
|
||||
(28, 0, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(29, 0, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态'),
|
||||
(30, 0, 1, '密码认证', 'password', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '密码认证'),
|
||||
(31, 0, 2, '短信认证', 'sms', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '短信认证'),
|
||||
(32, 0, 3, '邮件认证', 'email', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '邮件认证'),
|
||||
(33, 0, 4, '小程序认证', 'xcx', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '小程序认证'),
|
||||
(34, 0, 5, '三方登录认证', 'social', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '三方登录认证'),
|
||||
(35, 0, 1, 'PC', 'pc', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', 'PC'),
|
||||
(36, 0, 2, '安卓', 'android', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', '安卓'),
|
||||
(37, 0, 3, 'iOS', 'ios', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', 'iOS'),
|
||||
(38, 0, 4, '小程序', 'xcx', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', '小程序'),
|
||||
(100, 0, 0, '正常', '0', 'sys_student_status', NULL, 'primary', 'N', 0, 1, '2023-06-03 21:53:50', 1, '2023-06-03 21:55:24', NULL),
|
||||
(101, 0, 0, '停用', '1', 'sys_student_status', NULL, 'danger', 'N', 0, 1, '2023-06-03 21:54:11', 1, '2023-06-03 21:55:31', NULL),
|
||||
(102, 0, 0, '代码', '0', 'sys_student_hobby', NULL, 'primary', 'N', 0, 1, '2023-06-04 16:40:02', 1, NULL, NULL),
|
||||
(103, 0, 0, '音乐', '1', 'sys_student_hobby', NULL, 'success', 'N', 0, 1, '2023-06-04 16:40:24', 1, NULL, NULL),
|
||||
(104, 0, 0, '电影', '2', 'sys_student_hobby', NULL, 'warning', 'N', 0, 1, '2023-06-04 16:40:40', 1, '2023-06-04 16:40:49', NULL),
|
||||
(105, 0, 0, '计算机', '1', 'sys_goods_type', NULL, 'primary', 'N', 0, 1, '2023-06-05 07:23:48', 1, NULL, NULL),
|
||||
(106, 0, 0, '打印设备', '2', 'sys_goods_type', NULL, 'success', 'N', 0, 1, '2023-06-05 07:24:14', 1, NULL, NULL),
|
||||
(107, 0, 3, '衣服', '3', 'sys_goods_type', NULL, 'info', 'N', 0, 1, '2023-06-05 07:24:35', 1, NULL, NULL),
|
||||
(111, 0, 4, '网络设备', '4', 'sys_goods_type', NULL, 'default', NULL, 0, 1, '2023-09-19 17:31:46', 1, '2023-09-19 17:31:46', NULL),
|
||||
(65923231885905920, 0, 1, '桌面微机', 'PC', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:56:23', 1, '2023-10-01 10:56:23', NULL),
|
||||
(65923379802230784, 0, 2, '平板', 'pad', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:56:59', 1, '2023-10-01 10:56:59', NULL),
|
||||
(65923470604718080, 0, 3, '手机', 'phone', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:57:20', 1, '2023-10-01 10:57:20', NULL);
|
||||
(1, 1, 1, '男', '0', 'sys_user_gender', '', '', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '性别男'),
|
||||
(2, 1, 2, '女', '1', 'sys_user_gender', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '性别女'),
|
||||
(3, 1, 3, '未知', '2', 'sys_user_gender', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '性别未知'),
|
||||
(4, 1, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '显示菜单'),
|
||||
(5, 1, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '隐藏菜单'),
|
||||
(6, 1, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(7, 1, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态'),
|
||||
(8, 1, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(9, 1, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态'),
|
||||
(10, 1, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '默认分组'),
|
||||
(11, 1, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统分组'),
|
||||
(12, 1, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统默认是'),
|
||||
(13, 1, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统默认否'),
|
||||
(14, 1, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知'),
|
||||
(15, 1, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '公告'),
|
||||
(16, 1, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(17, 1, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '关闭状态'),
|
||||
(18, 1, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '其他操作'),
|
||||
(19, 1, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '新增操作'),
|
||||
(20, 1, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '修改操作'),
|
||||
(21, 1, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '删除操作'),
|
||||
(22, 1, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '授权操作'),
|
||||
(23, 1, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '导出操作'),
|
||||
(24, 1, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '导入操作'),
|
||||
(25, 1, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '强退操作'),
|
||||
(26, 1, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '生成操作'),
|
||||
(27, 1, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '清空操作'),
|
||||
(28, 1, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态'),
|
||||
(29, 1 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态'),
|
||||
(30, 1, 1, '密码认证', 'password', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '密码认证'),
|
||||
(31, 1, 2, '短信认证', 'sms', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '短信认证'),
|
||||
(32, 1, 3, '邮件认证', 'email', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '邮件认证'),
|
||||
(33, 1, 4, '小程序认证', 'xcx', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '小程序认证'),
|
||||
(34, 1, 5, '三方登录认证', 'social', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '三方登录认证'),
|
||||
(35, 1, 1, 'PC', 'pc', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', 'PC'),
|
||||
(36, 1, 2, '安卓', 'android', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', '安卓'),
|
||||
(37, 1, 3, 'iOS', 'ios', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', 'iOS'),
|
||||
(38, 1, 4, '小程序', 'xcx', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1, '2023-10-21 11:41:10', '小程序'),
|
||||
(100, 1, 0, '正常', '0', 'sys_student_status', NULL, 'primary', 'N', 0, 1, '2023-06-03 21:53:50', 1, '2023-06-03 21:55:24', NULL),
|
||||
(101, 1, 0, '停用', '1', 'sys_student_status', NULL, 'danger', 'N', 0, 1, '2023-06-03 21:54:11', 1, '2023-06-03 21:55:31', NULL),
|
||||
(102, 1, 0, '代码', '0', 'sys_student_hobby', NULL, 'primary', 'N', 0, 1, '2023-06-04 16:40:02', 1, NULL, NULL),
|
||||
(103, 1, 0, '音乐', '1', 'sys_student_hobby', NULL, 'success', 'N', 0, 1, '2023-06-04 16:40:24', 1, NULL, NULL),
|
||||
(104, 1, 0, '电影', '2', 'sys_student_hobby', NULL, 'warning', 'N', 0, 1, '2023-06-04 16:40:40', 1, '2023-06-04 16:40:49', NULL),
|
||||
(105, 1, 0, '计算机', '1', 'sys_goods_type', NULL, 'primary', 'N', 0, 1, '2023-06-05 07:23:48', 1, NULL, NULL),
|
||||
(106, 1, 0, '打印设备', '2', 'sys_goods_type', NULL, 'success', 'N', 0, 1, '2023-06-05 07:24:14', 1, NULL, NULL),
|
||||
(107, 1, 3, '衣服', '3', 'sys_goods_type', NULL, 'info', 'N', 0, 1, '2023-06-05 07:24:35', 1, NULL, NULL),
|
||||
(111, 1, 4, '网络设备', '4', 'sys_goods_type', NULL, 'default', NULL, 0, 1, '2023-09-19 17:31:46', 1, '2023-09-19 17:31:46', NULL),
|
||||
(65923231885905920, 1, 1, '桌面微机', 'PC', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:56:23', 1, '2023-10-01 10:56:23', NULL),
|
||||
(65923379802230784, 1, 2, '平板', 'pad', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:56:59', 1, '2023-10-01 10:56:59', NULL),
|
||||
(65923470604718080, 1, 3, '手机', 'phone', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:57:20', 1, '2023-10-01 10:57:20', NULL);
|
||||
|
||||
drop table if exists sys_dict_type;
|
||||
create table if not exists sys_dict_type
|
||||
(
|
||||
dict_id bigint NOT NULL,
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '0',
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '1',
|
||||
dict_name varchar(100) default ''::varchar,
|
||||
dict_type varchar(100) default ''::varchar,
|
||||
"version" INTEGER NULL DEFAULT 0,
|
||||
@ -842,28 +844,28 @@ comment on column sys_dict_type.update_time is '更新时间';
|
||||
comment on column sys_dict_type.remark is '备注';
|
||||
|
||||
INSERT INTO sys_dict_type VALUES
|
||||
(1,0, '用户性别', 'sys_user_gender', 0,1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '用户性别列表'),
|
||||
(2,0, '菜单状态', 'sys_show_hide', 0,1, '2023-06-03 21:32:30', 1, NULL, '菜单状态列表'),
|
||||
(3,0, '系统开关', 'sys_normal_disable', 0,1, '2023-06-03 21:32:30', 1, NULL, '系统开关列表'),
|
||||
(4,0, '任务状态', 'sys_job_status', 0,1, '2023-06-03 21:32:30', 1, NULL, '任务状态列表'),
|
||||
(5,0, '任务分组', 'sys_job_group', 0,1, '2023-06-03 21:32:30', 1, NULL, '任务分组列表'),
|
||||
(6,0, '系统是否', 'sys_yes_no', 0,1, '2023-06-03 21:32:30', 1, NULL, '系统是否列表'),
|
||||
(7,0, '通知类型', 'sys_notice_type', 0,1, '2023-06-03 21:32:30', 1, NULL, '通知类型列表'),
|
||||
(8,0, '通知状态', 'sys_notice_status', 0,1, '2023-06-03 21:32:30', 1, NULL, '通知状态列表'),
|
||||
(9,0, '操作类型', 'sys_oper_type', 0,1, '2023-06-03 21:32:30', 1, NULL, '操作类型列表'),
|
||||
(10,0, '系统状态', 'sys_common_status', 0,1, '2023-06-03 21:32:30', 1, NULL, '登录状态列表'),
|
||||
(11,0, '授权类型', 'sys_grant_type', 0,1, '2023-10-21 11:06:33', 1, '2023-10-21 11:06:33', '认证授权类型'),
|
||||
(12,0, '设备类型', 'sys_device_type', 0,1, '2023-10-21 11:38:41', 1, '2023-10-21 11:38:41', '客户端设备类型'),
|
||||
(100,0, '学生状态', 'sys_student_status', 0,1, '2023-06-03 21:52:47', 1, '2023-06-03 21:53:09', NULL),
|
||||
(101,0, '爱好', 'sys_student_hobby', 0,1, '2023-06-04 16:39:16', 1, NULL, NULL),
|
||||
(102,0, '商品种类', 'sys_goods_type', 0,1, '2023-06-05 07:23:20', 1, NULL, NULL),
|
||||
(65922863223361536, 0,'系统类型', 'sys_app_type', 0,1, '2023-10-01 10:54:55', 1, '2023-10-01 10:54:55', '系统类型列表');
|
||||
(1,1, '用户性别', 'sys_user_gender', 0,1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '用户性别列表'),
|
||||
(2,1, '菜单状态', 'sys_show_hide', 0,1, '2023-06-03 21:32:30', 1, NULL, '菜单状态列表'),
|
||||
(3,1, '系统开关', 'sys_normal_disable', 0,1, '2023-06-03 21:32:30', 1, NULL, '系统开关列表'),
|
||||
(4,1, '任务状态', 'sys_job_status', 0,1, '2023-06-03 21:32:30', 1, NULL, '任务状态列表'),
|
||||
(5,1, '任务分组', 'sys_job_group', 0,1, '2023-06-03 21:32:30', 1, NULL, '任务分组列表'),
|
||||
(6,1, '系统是否', 'sys_yes_no', 0,1, '2023-06-03 21:32:30', 1, NULL, '系统是否列表'),
|
||||
(7,1, '通知类型', 'sys_notice_type', 0,1, '2023-06-03 21:32:30', 1, NULL, '通知类型列表'),
|
||||
(8,1, '通知状态', 'sys_notice_status', 0,1, '2023-06-03 21:32:30', 1, NULL, '通知状态列表'),
|
||||
(9,1, '操作类型', 'sys_oper_type', 0,1, '2023-06-03 21:32:30', 1, NULL, '操作类型列表'),
|
||||
(10,1, '系统状态', 'sys_common_status', 0,1, '2023-06-03 21:32:30', 1, NULL, '登录状态列表'),
|
||||
(11,1, '授权类型', 'sys_grant_type', 0,1, '2023-10-21 11:06:33', 1, '2023-10-21 11:06:33', '认证授权类型'),
|
||||
(12,1, '设备类型', 'sys_device_type', 0,1, '2023-10-21 11:38:41', 1, '2023-10-21 11:38:41', '客户端设备类型'),
|
||||
(100,1, '学生状态', 'sys_student_status', 0,1, '2023-06-03 21:52:47', 1, '2023-06-03 21:53:09', NULL),
|
||||
(101,1, '爱好', 'sys_student_hobby', 0,1, '2023-06-04 16:39:16', 1, NULL, NULL),
|
||||
(102,1, '商品种类', 'sys_goods_type', 0,1, '2023-06-05 07:23:20', 1, NULL, NULL),
|
||||
(65922863223361536, 1,'系统类型', 'sys_app_type', 0,1, '2023-10-01 10:54:55', 1, '2023-10-01 10:54:55', '系统类型列表');
|
||||
|
||||
drop table if exists sys_logininfor;
|
||||
create table if not exists sys_logininfor
|
||||
(
|
||||
info_id bigint NOT NULL,
|
||||
tenant_id BIGINT NOT NULL DEFAULT '0',
|
||||
tenant_id BIGINT NOT NULL DEFAULT '1',
|
||||
user_name varchar(50) default ''::varchar,
|
||||
client_key VARCHAR(32) NULL DEFAULT ''::varchar,
|
||||
device_type VARCHAR(32) NULL DEFAULT ''::varchar,
|
||||
@ -1096,7 +1098,7 @@ drop table if exists sys_notice;
|
||||
create table if not exists sys_notice
|
||||
(
|
||||
notice_id bigint NOT NULL,
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '0',
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '1',
|
||||
notice_title varchar(50) not null,
|
||||
notice_type char not null,
|
||||
notice_content text,
|
||||
@ -1128,7 +1130,7 @@ drop table if exists sys_oper_log;
|
||||
create table if not exists sys_oper_log
|
||||
(
|
||||
oper_id bigint NOT NULL,
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '0',
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '1',
|
||||
title varchar(50) default ''::varchar,
|
||||
business_type INTEGER default 0,
|
||||
method varchar(100) default ''::varchar,
|
||||
@ -1176,7 +1178,7 @@ drop table if exists sys_oss;
|
||||
create table if not exists sys_oss
|
||||
(
|
||||
oss_id bigint NOT NULL,
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '0',
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '1',
|
||||
file_name varchar(255) default ''::varchar not null,
|
||||
original_name varchar(255) default ''::varchar not null,
|
||||
file_suffix varchar(10) default ''::varchar not null,
|
||||
@ -1208,7 +1210,7 @@ drop table if exists sys_oss_config;
|
||||
create table if not exists sys_oss_config
|
||||
(
|
||||
oss_config_id bigint NOT NULL,
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '0',
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '1',
|
||||
config_key varchar(20) default ''::varchar not null,
|
||||
access_key varchar(255) default ''::varchar,
|
||||
secret_key varchar(255) default ''::varchar,
|
||||
@ -1253,16 +1255,16 @@ comment on column sys_oss_config.update_time is '更新时间';
|
||||
comment on column sys_oss_config.remark is '备注';
|
||||
|
||||
INSERT INTO sys_oss_config VALUES
|
||||
(1,0, 'minio', 'ruoyi-flex', 'ruoyi-flex@369', 'ruoyi-flex', '', '127.0.0.1:9000', '', 'N', '', '1', '0', '', 0,1, '2023-11-30 11:54:13', 1, '2023-12-03 09:07:42', NULL),
|
||||
(2,0, 'qiniu', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-flex', '', 's3-cn-north-1.qiniucs.com', '', 'N', '', '1', '1', '', 0,1, '2023-11-30 11:54:13', 1, '2023-12-01 14:25:43', NULL),
|
||||
(3,0, 'aliyun', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-flex', '', 'oss-cn-beijing.aliyuncs.com', '', 'N', '', '1', '1', '', 0,1, '2023-11-30 11:54:13', 1, '2023-12-01 14:25:48', NULL),
|
||||
(4,0, 'qcloud', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-flex', '', 'cos.ap-beijing.myqcloud.com', '', 'N', '', '1', '1', '', 0,1, '2023-11-30 11:54:13', 1, '2023-12-01 14:26:02', NULL);
|
||||
(1,1, 'minio', 'ruoyi-flex', 'ruoyi-flex@369', 'ruoyi-flex', '', '127.0.0.1:9000', '', 'N', '', '1', '0', '', 0,1, '2023-11-30 11:54:13', 1, '2023-12-03 09:07:42', NULL),
|
||||
(2,1, 'qiniu', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-flex', '', 's3-cn-north-1.qiniucs.com', '', 'N', '', '1', '1', '', 0,1, '2023-11-30 11:54:13', 1, '2023-12-01 14:25:43', NULL),
|
||||
(3,1, 'aliyun', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-flex', '', 'oss-cn-beijing.aliyuncs.com', '', 'N', '', '1', '1', '', 0,1, '2023-11-30 11:54:13', 1, '2023-12-01 14:25:48', NULL),
|
||||
(4,1, 'qcloud', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-flex', '', 'cos.ap-beijing.myqcloud.com', '', 'N', '', '1', '1', '', 0,1, '2023-11-30 11:54:13', 1, '2023-12-01 14:26:02', NULL);
|
||||
|
||||
drop table if exists sys_post;
|
||||
create table if not exists sys_post
|
||||
(
|
||||
post_id bigint NOT NULL,
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '0',
|
||||
"tenant_id" BIGINT NOT NULL DEFAULT '1',
|
||||
post_code varchar(64) not null,
|
||||
post_name varchar(50) not null,
|
||||
post_sort INTEGER not null,
|
||||
@ -1291,17 +1293,17 @@ comment on column sys_post.update_time is '更新时间';
|
||||
comment on column sys_post.remark is '备注';
|
||||
|
||||
INSERT INTO sys_post VALUES
|
||||
(1,0, 'ceo', '董事长', 1, '0',0, 1, '2023-06-03 21:32:28', 1, '2023-09-02 15:43:55', ''),
|
||||
(2,0, 'se', '项目经理', 2, '0',0, 1, '2023-06-03 21:32:28', 1, NULL, ''),
|
||||
(3,0, 'hr', '人力资源', 3, '0',0, 1, '2023-06-03 21:32:28', 1, NULL, ''),
|
||||
(4,0, 'users', '普通员工', 4, '0', 0, 1, '2023-06-03 21:32:28', 1, '2023-07-13 21:30:24', ''),
|
||||
(5,0, 'deptLeader', '部门管理岗', 5, '0',0, 1, '2023-10-01 10:33:39', 1, '2023-10-01 10:33:39', '部门负责人岗位');
|
||||
(1,1, 'ceo', '董事长', 1, '0',0, 1, '2023-06-03 21:32:28', 1, '2023-09-02 15:43:55', ''),
|
||||
(2,1, 'se', '项目经理', 2, '0',0, 1, '2023-06-03 21:32:28', 1, NULL, ''),
|
||||
(3,1, 'hr', '人力资源', 3, '0',0, 1, '2023-06-03 21:32:28', 1, NULL, ''),
|
||||
(4,1, 'users', '普通员工', 4, '0', 0, 1, '2023-06-03 21:32:28', 1, '2023-07-13 21:30:24', ''),
|
||||
(5,1, 'deptLeader', '部门管理岗', 5, '0',0, 1, '2023-10-01 10:33:39', 1, '2023-10-01 10:33:39', '部门负责人岗位');
|
||||
|
||||
drop table if exists sys_role;
|
||||
create table if not exists sys_role
|
||||
(
|
||||
role_id bigint NOT NULL,
|
||||
tenant_id bigint default 0,
|
||||
tenant_id bigint default 1,
|
||||
role_name varchar(30) not null,
|
||||
role_key varchar(100) not null,
|
||||
role_sort INTEGER not null,
|
||||
@ -1338,7 +1340,7 @@ comment on column sys_role.update_time is '更新时间';
|
||||
comment on column sys_role.remark is '备注';
|
||||
|
||||
INSERT INTO sys_role VALUES
|
||||
(1,0, '超级管理员角色', 'admin', 1, '1', '1', '1', '0', 0,0, 1, '2023-06-03 21:32:28', 1, NULL, '超级管理员');
|
||||
(1,1, '超级管理员角色', 'admin', 1, '1', '1', '1', '0', 0,0, 1, '2023-06-03 21:32:28', 1, NULL, '超级管理员');
|
||||
|
||||
drop table if exists sys_role_dept;
|
||||
create table if not exists sys_role_dept
|
||||
@ -1372,7 +1374,7 @@ create table if not exists sys_social
|
||||
(
|
||||
social_id bigint not null,
|
||||
user_id bigint not null,
|
||||
tenant_id bigint NOT NULL DEFAULT '0',
|
||||
tenant_id bigint NOT NULL DEFAULT '1',
|
||||
auth_id varchar(255) not null,
|
||||
source varchar(255) not null,
|
||||
open_id varchar(255) default null::varchar,
|
||||
@ -1511,7 +1513,7 @@ COMMENT ON COLUMN "sys_tenant"."update_by" IS '更新者';
|
||||
COMMENT ON COLUMN "sys_tenant"."update_time" IS '更新时间';
|
||||
|
||||
insert into sys_tenant values
|
||||
(0, '联系人', '18888888888', 'Ruoyi-Flex公司', NULL, NULL, 'RuoYi-Flex多租户通用后台管理管理系统', NULL, NULL, NULL, NULL, -1, '0', 0,0, 1, '2023-08-13 08:08:08', NULL, NULL);
|
||||
(1, '联系人', '18888888888', 'Ruoyi-Flex公司', NULL, NULL, 'RuoYi-Flex多租户通用后台管理管理系统', NULL, NULL, NULL, NULL, -1, '0', 0,0, 1, '2023-08-13 08:08:08', NULL, NULL);
|
||||
|
||||
|
||||
|
||||
@ -1568,7 +1570,7 @@ comment on column sys_user.update_time is '更新时间';
|
||||
comment on column sys_user.remark is '备注';
|
||||
|
||||
INSERT INTO sys_user VALUES
|
||||
(1, 0, 1, 'superadmin', '超级管理员', 'sys_user', 'ry@163.com', '15888888888', '1', NULL, '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', 0,0, '0:0:0:0:0:0:0:1', '2023-12-18 10:57:01', 1, '2023-06-03 21:32:28', 1, '2023-12-18 10:57:01', '管理员');
|
||||
(1, 1, 1, 'superadmin', '超级管理员', 'sys_user', 'ry@163.com', '15888888888', '1', NULL, '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', 0,0, '0:0:0:0:0:0:0:1', '2023-12-18 10:57:01', 1, '2023-06-03 21:32:28', 1, '2023-12-18 10:57:01', '管理员');
|
||||
|
||||
|
||||
drop table if exists sys_user_post;
|
||||
|
@ -95,3 +95,23 @@ comment on column sys_social.create_by is '创建者';
|
||||
comment on column sys_social.create_time is '创建时间';
|
||||
comment on column sys_social.update_by is '更新者';
|
||||
comment on column sys_social.update_time is '更新时间';
|
||||
|
||||
-- tenant_id由0修改为1
|
||||
UPDATE "public"."sys_tenant" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."mf_customer" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."mf_goods" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."mf_product" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."mf_student" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."sys_config" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."sys_dept" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."sys_dict_data" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."sys_dict_type" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."sys_logininfor" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."sys_notice" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."sys_oper_log" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."sys_oss" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."sys_oss_config" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."sys_post" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."sys_role" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."sys_social" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
UPDATE "public"."sys_user" SET "tenant_id"=1 WHERE "tenant_id"=0;
|
||||
|
Loading…
Reference in New Issue
Block a user