/*
 Navicat Premium Data Transfer

 Source Server         : 192.168.1.2.1624（宁夏生产）
 Source Server Type    : MySQL
 Source Server Version : 80027
 Source Host           : 192.168.1.2:1624
 Source Schema         : ma_sgzb

 Target Server Type    : MySQL
 Target Server Version : 80027
 File Encoding         : 65001

 Date: 21/08/2024 14:57:41
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role`  (
  `role_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  `role_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色名称',
  `role_key` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色权限字符串',
  `role_sort` int(0) NOT NULL COMMENT '显示顺序',
  `data_scope` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1' COMMENT '数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）',
  `menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示',
  `dept_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '部门树选择项是否关联显示',
  `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  `company_id` bigint(0) NULL DEFAULT NULL COMMENT '数据所属组织',
  PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 160 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES (1, '超级管理员', 'admin', 1, '1', 1, 1, '0', '0', 'admin', '2023-12-08 11:05:28', '', NULL, '超级管理员', 100);
INSERT INTO `sys_role` VALUES (127, '机具设备分公司--机具经理/书记', 'em01', 1, '1', 0, 1, '0', '0', 'admin', '2024-05-06 11:04:51', 'admin', '2024-07-19 09:07:30', NULL, NULL);
INSERT INTO `sys_role` VALUES (128, '机具设备分公司--机具副经理', 'em02', 2, '1', 0, 1, '0', '0', 'admin', '2024-05-06 11:06:25', 'admin', '2024-07-19 09:07:51', NULL, NULL);
INSERT INTO `sys_role` VALUES (129, '机具设备分公司--安全员', 'em03', 3, '1', 0, 1, '0', '0', 'admin', '2024-05-06 11:11:28', 'admin', '2024-07-19 09:08:10', NULL, NULL);
INSERT INTO `sys_role` VALUES (130, '机具设备分公司--班长', 'jjbz', 4, '1', 0, 1, '0', '0', 'admin', '2024-05-06 11:15:30', 'admin', '2024-07-19 09:08:29', NULL, NULL);
INSERT INTO `sys_role` VALUES (131, '机具设备分公司--结算员', 'em05', 5, '1', 0, 1, '0', '0', 'admin', '2024-05-06 11:16:57', 'admin', '2024-07-19 09:08:49', NULL, NULL);
INSERT INTO `sys_role` VALUES (132, '机具设备分公司--机具库管员', 'jjfgs', 6, '1', 0, 1, '0', '0', 'admin', '2024-05-06 11:21:00', 'admin', '2024-07-19 09:09:25', NULL, NULL);
INSERT INTO `sys_role` VALUES (133, '机具设备分公司--维修班', 'em07', 7, '1', 0, 1, '0', '0', 'admin', '2024-05-06 11:22:11', 'admin', '2024-07-19 09:09:14', NULL, NULL);
INSERT INTO `sys_role` VALUES (134, '机具设备分公司--维修班班长', 'em08', 8, '1', 0, 1, '0', '0', 'admin', '2024-05-06 11:27:19', 'admin', '2024-07-19 09:09:46', NULL, NULL);
INSERT INTO `sys_role` VALUES (135, '调试分公司--调试经理', 'dm01', 9, '1', 0, 1, '0', '0', 'admin', '2024-05-06 11:31:41', 'admin', '2024-07-19 09:10:04', NULL, NULL);
INSERT INTO `sys_role` VALUES (136, '调试分公司--调试审核员', 'dm02', 10, '1', 0, 1, '0', '0', 'admin', '2024-05-06 11:36:32', 'admin', '2024-07-19 09:10:24', NULL, NULL);
INSERT INTO `sys_role` VALUES (137, '调试分公司--调试领料员', 'dm03', 11, '1', 0, 1, '0', '0', 'admin', '2024-05-06 11:38:03', 'admin', '2024-05-27 09:23:19', NULL, NULL);
INSERT INTO `sys_role` VALUES (138, '调试分公司--调试安全专责', 'dm04', 12, '1', 0, 1, '0', '0', 'admin', '2024-05-06 11:38:57', 'admin', '2024-05-28 15:53:12', NULL, NULL);
INSERT INTO `sys_role` VALUES (139, '调试分公司--调试库管员', 'dm05', 13, '1', 0, 1, '0', '0', 'admin', '2024-05-06 13:04:52', 'admin', '2024-07-19 09:10:43', NULL, NULL);
INSERT INTO `sys_role` VALUES (140, '调试分公司--调试维修员', 'dm06', 14, '1', 0, 1, '0', '0', 'admin', '2024-05-06 13:06:12', 'admin', '2024-07-16 10:07:06', NULL, NULL);
INSERT INTO `sys_role` VALUES (141, '调试分公司--维修班长', 'dm07', 15, '1', 0, 1, '0', '0', 'admin', '2024-05-06 13:06:34', 'admin', '2024-07-16 10:07:39', NULL, NULL);
INSERT INTO `sys_role` VALUES (142, '综合服务中心--综合服务中心经理', 'csc01', 16, '1', 0, 1, '0', '0', 'admin', '2024-05-06 13:08:53', 'admin', '2024-06-26 10:59:59', NULL, NULL);
INSERT INTO `sys_role` VALUES (143, '综合服务中心--综合服务中心材料员', 'csc02', 17, '1', 0, 1, '0', '0', 'admin', '2024-05-06 13:09:40', 'admin', '2024-05-17 18:58:18', NULL, NULL);
INSERT INTO `sys_role` VALUES (144, '综合服务中心--领料人', 'csc03', 18, '1', 0, 1, '0', '0', 'admin', '2024-05-06 13:10:54', 'admin', '2024-06-26 11:06:28', NULL, NULL);
INSERT INTO `sys_role` VALUES (145, '安全监察部--安监部经理', 'ajb', 19, '1', 0, 1, '0', '0', 'admin', '2024-05-06 13:13:10', 'admin', '2024-05-17 19:00:11', NULL, NULL);
INSERT INTO `sys_role` VALUES (146, '安全监察部--领料人', 'sd02', 20, '1', 0, 1, '0', '0', 'admin', '2024-05-06 13:14:11', 'admin', '2024-05-17 19:01:03', NULL, NULL);
INSERT INTO `sys_role` VALUES (147, '施工管理部--施管部经理', 'sgb', 21, '1', 0, 1, '0', '0', 'admin', '2024-05-06 13:15:37', 'admin', '2024-05-17 19:02:33', NULL, NULL);
INSERT INTO `sys_role` VALUES (148, '施工管理部--领料人', 'cmd02', 22, '1', 0, 1, '0', '0', 'admin', '2024-05-06 13:16:32', 'admin', '2024-05-17 19:03:01', NULL, NULL);
INSERT INTO `sys_role` VALUES (149, '其他分公司--各分公司经理', 'fgs', 23, '1', 0, 1, '0', '0', 'admin', '2024-05-06 13:17:39', 'admin', '2024-05-17 19:04:48', NULL, NULL);
INSERT INTO `sys_role` VALUES (150, '其他分公司--领料人', 'me02', 24, '1', 0, 1, '0', '0', 'admin', '2024-05-06 13:18:32', 'admin', '2024-05-22 16:03:19', NULL, NULL);
INSERT INTO `sys_role` VALUES (151, '公司领导01', 'Cl01', 25, '1', 0, 1, '0', '2', 'admin', '2024-05-17 14:14:46', 'admin', '2024-06-12 09:23:37', NULL, NULL);
INSERT INTO `sys_role` VALUES (152, '机具设备分公司--采购员', 'cgy', 26, '1', 1, 1, '0', '0', '', '2024-05-17 19:09:38', '', '2024-05-17 19:09:46', NULL, NULL);
INSERT INTO `sys_role` VALUES (153, '工器具鉴定员', 'jdy', 27, '1', 1, 1, '0', '0', '', '2024-05-17 19:11:18', '', NULL, NULL, NULL);
INSERT INTO `sys_role` VALUES (154, '资料员', 'zly', 28, '1', 1, 1, '0', '0', '', '2024-05-17 19:11:30', '', NULL, NULL, NULL);
INSERT INTO `sys_role` VALUES (155, '副班长', 'fbz', 29, '1', 1, 1, '0', '0', '', '2024-05-17 19:11:46', '', '2024-05-17 19:11:52', NULL, NULL);
INSERT INTO `sys_role` VALUES (156, '机械班班长', 'jxb', 30, '1', 1, 1, '0', '0', '', '2024-05-17 19:13:41', '', NULL, NULL, NULL);
INSERT INTO `sys_role` VALUES (157, '设备检定员', 'sbjdy', 31, '1', 1, 1, '0', '0', '', '2024-05-17 19:17:00', '', NULL, NULL, NULL);
INSERT INTO `sys_role` VALUES (158, '公司领导', 'ld', 32, '1', 0, 1, '0', '0', '', '2024-05-17 19:42:01', '', '2024-07-19 09:11:37', NULL, NULL);
INSERT INTO `sys_role` VALUES (159, '领料任务短信首催', 'pickingFirst', 33, '1', 1, 1, '0', '0', '', '2024-07-19 15:53:28', '', '2024-07-19 15:53:34', NULL, NULL);

SET FOREIGN_KEY_CHECKS = 1;
