Files
be.ems/database/install/sys_role.sql

42 lines
2.5 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- MariaDB dump 10.19 Distrib 10.6.16-MariaDB, for debian-linux-gnu (x86_64)
--
-- Table structure for table `sys_role`
--
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
`role_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
`role_name` varchar(30) NOT NULL COMMENT '角色名称',
`role_key` varchar(50) NOT NULL COMMENT '角色键值',
`role_sort` int(11) DEFAULT 0 COMMENT '显示顺序',
`data_scope` char(1) DEFAULT '5' COMMENT '数据范围1全部数据权限 2自定数据权限 3本部门数据权限 4本部门及以下数据权限 5仅本人数据权限',
`menu_check_strictly` char(1) DEFAULT '1' COMMENT '菜单树选择项是否关联显示0父子不互相关联显示 1父子互相关联显示',
`dept_check_strictly` char(1) DEFAULT '1' COMMENT '部门树选择项是否关联显示0父子不互相关联显示 1父子互相关联显示 ',
`status` char(1) DEFAULT '0' COMMENT '角色状态0停用 1正常',
`del_flag` char(1) DEFAULT '0' COMMENT '删除标志0代表存在 1代表删除',
`create_by` varchar(50) DEFAULT '' COMMENT '创建者',
`create_time` bigint(20) DEFAULT 0 COMMENT '创建时间',
`update_by` varchar(50) DEFAULT '' COMMENT '更新者',
`update_time` bigint(20) DEFAULT 0 COMMENT '更新时间',
`remark` varchar(500) DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`role_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='角色信息表';
--
-- Dumping data for table `sys_role`
--
LOCK TABLES `sys_role` WRITE;
INSERT INTO `sys_role` VALUES (1, 'role.system', 'system', 1, '1', '1', '1', '1', '0', 'supervisor', 1697091437683, 'supervisor', 1697091437683, 'role.systemRemark');
INSERT INTO `sys_role` VALUES (2, 'role.admin', 'admin', 2, '1', '1', '1', '1', '0', 'supervisor', 1698486915894, 'supervisor', 1717143830709, 'role.adminRemark');
INSERT INTO `sys_role` VALUES (3, 'role.operator', 'operator', 3, '1', '1', '1', '1', '0', 'supervisor', 1698486934900, 'supervisor', 1717143582784, 'role.operatorRemark');
INSERT INTO `sys_role` VALUES (4, 'role.monitor', 'monitor', 4, '1', '1', '1', '1', '0', 'supervisor', 1698486950714, 'supervisor', 1706774389300, 'role.monitorRemark');
INSERT INTO `sys_role` VALUES (5, 'role.vistor', 'vistor', 5, '1', '1', '1', '1', '0', 'supervisor', 1698486975779, 'supervisor', 1706774405096, 'role.vistorRemark');
UNLOCK TABLES;
-- Dump completed on 2024-03-06 17:27:00