/*
 Navicat Premium Data Transfer

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 80032
 Source Host           : localhost:3306
 Source Schema         : cpop-union

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

 Date: 27/09/2023 16:06:32
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for pp_oam_dept
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_dept`;
CREATE TABLE `cp_oam_dept`  (
  `id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '部门id',
  `parent_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '父部门id',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门名称',
  `order_no` int(0) NULL DEFAULT NULL COMMENT '排序',
  `leader` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '负责人',
  `phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '电话',
  `email` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
  `status` tinyint(1) NULL DEFAULT NULL COMMENT '部门状态:1正常,0停用',
  `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '备注',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  `is_delete` tinyint(1) NULL DEFAULT 1 COMMENT '逻辑删除(0否1是)',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '部门表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_dept
-- ----------------------------
INSERT INTO `cp_oam_dept` VALUES ('72c677f7f492c98f39e633ddc4433d17', NULL, '深圳普普数字产业发展有限公司', 0, 'DB', '18000000000', '18000000000@qq.com', 1, NULL, '2023-03-20 22:17:59', '1', '2023-09-12 16:33:44', '1', 0);

-- ----------------------------
-- Table structure for pp_oam_duty
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_duty`;
CREATE TABLE `cp_oam_duty`  (
  `id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  `service_staff_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '服务员工id',
  `technology_staff_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '技术员工id',
  `duty_date` date NULL DEFAULT NULL COMMENT '值班日期',
  `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '备注',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = '值班表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_duty
-- ----------------------------

-- ----------------------------
-- Table structure for pp_oam_finance_reimburse
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_finance_reimburse`;
CREATE TABLE `cp_oam_finance_reimburse`  (
  `id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `staff_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提交人',
  `status` int(0) NULL DEFAULT 0 COMMENT '状态：0:已提交;1:审批中;2:下款中;3:已下发;4:驳回',
  `type_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '申请类型',
  `report_date` date NULL DEFAULT NULL COMMENT '报销日期',
  `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '申请说明',
  `price` decimal(20, 2) NULL DEFAULT NULL COMMENT '申请金额',
  `attachment_url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '附件',
  `reject_reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '驳回原因',
  `create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
  `update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  `is_delete` tinyint(0) NULL DEFAULT 0 COMMENT '逻辑删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '报销记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_finance_reimburse
-- ----------------------------

-- ----------------------------
-- Table structure for pp_oam_finance_reimburse_stage
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_finance_reimburse_stage`;
CREATE TABLE `cp_oam_finance_reimburse_stage`  (
  `id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  `finance_reimburse_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '报销记录id',
  `stage_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '阶段金额',
  `payment_time` datetime(0) NULL DEFAULT NULL COMMENT '下发时间',
  `create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  `deleted` tinyint(1) NULL DEFAULT 1 COMMENT '逻辑删除（1否0是）',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '报销阶段表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_finance_reimburse_stage
-- ----------------------------

-- ----------------------------
-- Table structure for pp_oam_finance_reimburse_type
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_finance_reimburse_type`;
CREATE TABLE `cp_oam_finance_reimburse_type`  (
  `id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  `type_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '报销类型',
  `create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `report_name`(`type_name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '报销类型表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_finance_reimburse_type
-- ----------------------------

-- ----------------------------
-- Table structure for pp_oam_menu
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_menu`;
CREATE TABLE `cp_oam_menu`  (
  `id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单ID',
  `parent_menu` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '父级菜单ID',
  `name` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '菜单名称',
  `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单图标',
  `component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单路由，父菜单为空',
  `status` tinyint(1) NULL DEFAULT NULL COMMENT '标记菜单的状态 0:禁用 1：正常（根据权限正常显示）',
  `type` int(0) NULL DEFAULT NULL COMMENT '菜单类型，0:目录，1:菜单，2:按钮',
  `permission` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限',
  `redirect` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '重定向路径，一级菜单有值',
  `order_no` int(0) NULL DEFAULT NULL COMMENT '排序，值越小越靠前，一级菜单有值',
  `path` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由地址',
  `title` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题',
  `hide_menu` tinyint(1) NULL DEFAULT 0 COMMENT '隐藏菜单',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统菜单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_menu
-- ----------------------------
INSERT INTO `cp_oam_menu` VALUES ('0543bcb8d5e324bbfdb3ab5a6a69b6d9', '1e0ab5fda780a0a0f76aa484ef92ec12', NULL, NULL, 'LAYOUT', 1, 2, 'dutyCalendar:duty:remove', NULL, 10, NULL, '删除值班', 0, '2023-05-19 09:23:26', '1', '2023-09-15 10:40:34', '1');
INSERT INTO `cp_oam_menu` VALUES ('07585353c7ed61cca5fba5ba0057fe9f', NULL, 'OamTask', 'ant-design:carry-out-outlined', 'LAYOUT', 1, 0, NULL, NULL, 10, '/oamTask', '任务管理', 0, '2023-05-19 10:10:24', '1', '2023-09-15 15:46:23', '1');
INSERT INTO `cp_oam_menu` VALUES ('0bc2a7f74fbfa18a6de9e8582a12a7ae', '0d486bfdddc4d9aae67a7162467848ba', NULL, NULL, 'LAYOUT', 1, 2, 'oamTask:task:update', NULL, 20, NULL, '领取任务', 0, '2023-05-19 17:53:17', '1', '2023-09-15 15:47:05', '1');
INSERT INTO `cp_oam_menu` VALUES ('0d486bfdddc4d9aae67a7162467848ba', '07585353c7ed61cca5fba5ba0057fe9f', 'Task', 'ant-design:align-left-outlined', '/oamTask/task/Index.vue', 1, 1, 'oamTask:task:list', NULL, 0, '/oamTask/task', '任务列表', 0, '2023-05-19 10:15:13', '1', '2023-09-26 15:26:38', '1');
INSERT INTO `cp_oam_menu` VALUES ('118a8b1f852823668c3e4969442b1b06', 'bdaf51dd6319b24f7ba1c8d2ae11b953', 'Brand', 'ant-design:behance-circle-filled', '/brandAndCampus/brand/index.vue', 1, 1, 'brandAndCampus:brand:list', NULL, 0, '/brandAndCampus/brand', '品牌管理', 0, '2023-06-01 18:00:25', '1', '2023-06-07 10:07:28', '1');
INSERT INTO `cp_oam_menu` VALUES ('13474e90432670ec0ffebaf63bd42984', '0d486bfdddc4d9aae67a7162467848ba', NULL, NULL, 'LAYOUT', 1, 2, 'oamTask:task:insert', NULL, 0, NULL, '添加迭代任务', 0, '2023-05-19 17:51:37', '1', '2023-09-15 15:46:51', '1');
INSERT INTO `cp_oam_menu` VALUES ('1e0ab5fda780a0a0f76aa484ef92ec12', '282e702ef80abfab3e15f857a7fbaf38', 'Duty', 'ant-design:table-outlined', '/dutyCalendar/duty/index.vue', 1, 1, 'dutyCalendar:duty:list', NULL, 0, '/dutyCalendar/duty', '值班管理', 1, '2023-05-17 15:02:54', '1', '2023-09-15 10:40:14', '1');
INSERT INTO `cp_oam_menu` VALUES ('22fdbfdbdefabb5bfb93f883ab5dcf2e', '118a8b1f852823668c3e4969442b1b06', NULL, NULL, 'LAYOUT', 1, 2, 'brandAndCampus:brand:update', NULL, 0, NULL, '编辑品牌', 0, '2023-06-01 18:01:15', '1', '2023-06-07 10:07:43', '1');
INSERT INTO `cp_oam_menu` VALUES ('282e702ef80abfab3e15f857a7fbaf38', NULL, 'DutyCalendar', 'ant-design:table-outlined', 'LAYOUT', 1, 0, NULL, '/dutyCalendar/duty', 50, '/dutyCalendar', '值班管理', 0, '2023-05-17 14:56:49', '1', '2023-09-15 10:42:10', '1');
INSERT INTO `cp_oam_menu` VALUES ('29a80a59088e00ec86c39ae4b4216f02', '56159c5249674322afe4577ecc4e4fb0', 'AccountDetail', 'ant-design:android-filled', '/system/account/components/AccountDetail.vue', 1, 1, NULL, NULL, 35, '/system/accountDetail/:id', '账号详情', 1, '2022-10-20 10:34:31', '1', '2023-04-12 17:37:12', '1');
INSERT INTO `cp_oam_menu` VALUES ('2b43f89630a90fa1d4e0325d3de20c4a', '97916ae22affe061ec9af71afc915af5', NULL, NULL, 'LAYOUT', 1, 2, 'oamTask:taskDemand:insert', NULL, 0, NULL, '新增需求', 0, '2023-05-30 15:34:21', '1', '2023-05-30 17:14:32', '1');
INSERT INTO `cp_oam_menu` VALUES ('34b34b1461e9d8ff28904bdcebf6c801', 'bdaf51dd6319b24f7ba1c8d2ae11b953', 'BrandStaff', 'ant-design:user-outlined', '/brandAndCampus/brandStaff/index.vue', 1, 1, 'brandAndCampus:brandStaff:list', NULL, 10, '/brandAndCampus/brandStaff', '品牌管理员', 0, '2023-06-02 11:11:25', '1', '2023-09-14 10:16:08', '1');
INSERT INTO `cp_oam_menu` VALUES ('3757a482ea8ab4533ea3f58b53844df8', '5f6f850fafc42bf86cccd2b20c2d4560', NULL, NULL, 'LAYOUT', 1, 2, 'toamTask:workOrder:record', NULL, 20, NULL, '工单记录', 0, '2023-07-13 12:47:45', '1', '2023-07-13 12:47:45', '1');
INSERT INTO `cp_oam_menu` VALUES ('37584218da7773e76fc8cb58a27c190c', '56159c5249674322afe4577ecc4e4fb0', 'Config', 'ant-design:control-filled', '/system/config/index.vue', 1, 1, 'system:config:list', NULL, 40, '/system/config', '系统配置', 0, '2023-07-13 15:19:26', '1', '2023-07-13 15:19:26', '1');
INSERT INTO `cp_oam_menu` VALUES ('37e2f67bec72f466c1b6863132a6444e', NULL, 'WechatDevelopmentPlatform', 'ant-design:aliwangwang-outlined', 'LAYOUT', 0, 0, NULL, NULL, 80, '/wechatDevelopmentPlatform', '微信开发平台', 0, '2023-06-07 15:18:01', '1', '2023-07-04 17:40:38', '1');
INSERT INTO `cp_oam_menu` VALUES ('43189970133945d5c5e854b8a8c7acb1', '56159c5249674322afe4577ecc4e4fb0', 'Menu', 'fa:bars', '/system/menu/index.vue', 1, 1, NULL, NULL, 0, '/system/menu', '菜单管理', 0, '2022-10-02 19:07:55', '1', '2022-10-19 17:12:32', '1');
INSERT INTO `cp_oam_menu` VALUES ('469e2e562418185cf40936c1b1bd8f73', '883112b812224735d2a71b120d0bdf66', NULL, NULL, 'LAYOUT', 1, 2, 'system:dept:update', NULL, 10, NULL, '修改部门', 0, '2022-10-19 17:38:53', '1', '2022-10-19 17:38:53', '1');
INSERT INTO `cp_oam_menu` VALUES ('4b0cb1472b28b094cb3f2301c792bac3', '913147f25f3721685f74570df0ed6f29', NULL, NULL, 'LAYOUT', 1, 2, 'system:account:update', NULL, 10, NULL, '修改账号', 0, '2022-10-20 11:23:35', '1', '2022-10-20 11:23:35', '1');
INSERT INTO `cp_oam_menu` VALUES ('508f8ede8beb9ba02d3ba25ab74b57cf', 'c29ebe0bfbc9d62412c0a663175f82ec', NULL, NULL, 'LAYOUT', 1, 2, 'oamTask:taskAudit:update', NULL, 0, NULL, '任务审核', 0, '2023-05-29 09:12:12', '1', '2023-09-18 09:53:54', '1');
INSERT INTO `cp_oam_menu` VALUES ('56159c5249674322afe4577ecc4e4fb0', NULL, 'System', 'fa:cogs', 'LAYOUT', 1, 0, NULL, NULL, 100, '/system', '系统管理', 0, '2022-09-29 22:48:18', '1', '2023-05-17 14:51:37', '1');
INSERT INTO `cp_oam_menu` VALUES ('5f6f850fafc42bf86cccd2b20c2d4560', '07585353c7ed61cca5fba5ba0057fe9f', 'WorkOrder', 'ant-design:bulb-twotone', '/oamTask/workOrder/Index.vue', 1, 1, 'oamTask:workOrder:list', NULL, 30, '/oamTask/workOrder', '工单管理', 0, '2023-07-13 12:45:35', '1', '2023-09-26 15:26:56', '1');
INSERT INTO `cp_oam_menu` VALUES ('5fac1c7c5a5f7f04f1030725c093e7be', '90fb318a81def682de9c48b0fd05cc75', NULL, NULL, 'LAYOUT', 1, 2, 'wechatDevelopmentPlatform:applet:insert', NULL, 0, NULL, '新增小程序', 0, '2023-06-07 15:29:10', '1', '2023-06-07 15:29:10', '1');
INSERT INTO `cp_oam_menu` VALUES ('62362924994736128', NULL, 'Finance', 'ant-design:money-collect-filled', 'LAYOUT', 1, 0, NULL, NULL, 40, '/finance', '财务报销', 0, '2023-09-21 15:09:00', '1', '2023-09-21 15:09:00', '1');
INSERT INTO `cp_oam_menu` VALUES ('62363536260018176', '62362924994736128', 'Application', 'ant-design:arrow-up-outlined', '/financial/application/Index.vue', 1, 1, 'financial:application:list', NULL, 0, '/financial/application', '报销申请', 0, '2023-09-21 15:11:26', '1', '2023-09-25 13:06:37', '1');
INSERT INTO `cp_oam_menu` VALUES ('62364011151699968', '62362924994736128', 'Audit', 'ant-design:bug-twotone', '/financial/audit/Index.vue', 1, 1, 'financial:reimburseAudit:list', NULL, 5, '/financial/audit', '报销审核', 0, '2023-09-21 15:13:19', '1', '2023-09-27 14:06:39', '1');
INSERT INTO `cp_oam_menu` VALUES ('628e33ac5f72b68e6f11b7e5e1ac4c72', '5f6f850fafc42bf86cccd2b20c2d4560', NULL, NULL, 'LAYOUT', 1, 2, 'task:workOrder:update', NULL, 10, NULL, '修改工单', 0, '2023-07-13 12:47:14', '1', '2023-07-13 12:47:14', '1');
INSERT INTO `cp_oam_menu` VALUES ('63781576994349056', '62363536260018176', '', NULL, 'LAYOUT', 1, 2, 'financial:application:insert', NULL, 0, NULL, '新增报销', 0, '2023-09-25 13:06:13', '1', '2023-09-25 13:06:13', '1');
INSERT INTO `cp_oam_menu` VALUES ('64547480627785728', '62364011151699968', '', NULL, 'LAYOUT', 1, 2, 'financial:reimburseAudit:update', NULL, 0, NULL, '编辑报销审核', 0, '2023-09-27 15:49:39', '1', '2023-09-27 15:50:50', '1');
INSERT INTO `cp_oam_menu` VALUES ('64547713428434944', '62364011151699968', '', NULL, 'LAYOUT', 1, 2, 'financial:reimburseAudit:insert', NULL, 5, NULL, '新增报销审核', 0, '2023-09-27 15:50:34', '1', '2023-09-27 15:50:34', '1');
INSERT INTO `cp_oam_menu` VALUES ('64547902948061184', '62364011151699968', '', NULL, 'LAYOUT', 1, 2, 'financial:reimburseAudit:remove', NULL, 10, NULL, '删除报销审核', 0, '2023-09-27 15:51:19', '1', '2023-09-27 15:51:19', '1');
INSERT INTO `cp_oam_menu` VALUES ('735d0f3d49a4543d4af64a9cf4652dff', '1e0ab5fda780a0a0f76aa484ef92ec12', NULL, NULL, 'LAYOUT', 1, 2, 'dutyCalendar:duty:insert', NULL, 0, NULL, '新增值班', 0, '2023-05-19 09:22:58', '1', '2023-09-15 10:40:25', '1');
INSERT INTO `cp_oam_menu` VALUES ('7be5939441b413a705a5fcb600839f0f', 'ae8d81c31d13607b6f4b1962df01d469', NULL, NULL, 'LAYOUT', 1, 2, 'brandAndCampus:campus:update', NULL, 0, NULL, '编辑校区', 0, '2023-06-07 09:54:51', '1', '2023-06-07 10:08:12', '1');
INSERT INTO `cp_oam_menu` VALUES ('81973d68c66261975c6c2b5eef9084dd', '913147f25f3721685f74570df0ed6f29', NULL, NULL, 'LAYOUT', 1, 2, 'system:account:info', NULL, 40, NULL, '账号详情', 0, '2022-10-20 11:29:37', '1', '2022-10-20 11:29:37', '1');
INSERT INTO `cp_oam_menu` VALUES ('83a42156935b50053fbacfa09ef43fbb', '913147f25f3721685f74570df0ed6f29', NULL, NULL, 'LAYOUT', 1, 2, 'system:account:insert', NULL, 0, NULL, '新增账号', 0, '2022-10-20 11:23:05', '1', '2022-10-20 11:23:05', '1');
INSERT INTO `cp_oam_menu` VALUES ('84098277d121e712c3ea7e850ef0ef49', '118a8b1f852823668c3e4969442b1b06', NULL, NULL, 'LAYOUT', 1, 2, 'brandAndCampus:brand:remove', NULL, 10, NULL, '删除品牌', 0, '2023-06-01 18:01:38', '1', '2023-06-07 10:07:17', '1');
INSERT INTO `cp_oam_menu` VALUES ('883112b812224735d2a71b120d0bdf66', '56159c5249674322afe4577ecc4e4fb0', 'Department', 'ant-design:apartment-outlined', '/system/dept/index.vue', 1, 1, 'system:dept:list', NULL, 20, '/system/department', '部门管理', 0, '2022-10-14 16:11:15', '1', '2022-10-20 09:47:57', '1');
INSERT INTO `cp_oam_menu` VALUES ('89b03c3daceb1c2ebe2aa01c4a775888', '5f6f850fafc42bf86cccd2b20c2d4560', NULL, NULL, 'LAYOUT', 1, 2, 'oamTask:workOrder:insert', NULL, 0, NULL, '新增工单', 0, '2023-07-13 12:46:36', '1', '2023-07-13 12:46:36', '1');
INSERT INTO `cp_oam_menu` VALUES ('8a3cabbff478dac7366d8b5e56da9296', '0d486bfdddc4d9aae67a7162467848ba', NULL, NULL, 'LAYOUT', 1, 2, 'oamTask:task:remove', NULL, 10, NULL, '删除任务', 0, '2023-05-19 17:52:03', '1', '2023-09-15 15:46:57', '1');
INSERT INTO `cp_oam_menu` VALUES ('8fc436c8b5085e3d6b51ae3a87eb3c2e', 'ae8d81c31d13607b6f4b1962df01d469', NULL, NULL, 'LAYOUT', 1, 2, 'brandAndCampus:campus:remove', NULL, 10, NULL, '删除校区', 0, '2023-06-07 09:55:16', '1', '2023-06-07 10:08:25', '1');
INSERT INTO `cp_oam_menu` VALUES ('8fd75624e030697574bbee52be834120', '90fb318a81def682de9c48b0fd05cc75', NULL, NULL, 'LAYOUT', 1, 2, 'wechatDevelopmentPlatform:applet:remove', NULL, 20, NULL, '删除小程序', 0, '2023-06-07 15:29:47', '1', '2023-06-07 15:29:47', '1');
INSERT INTO `cp_oam_menu` VALUES ('90fb318a81def682de9c48b0fd05cc75', '37e2f67bec72f466c1b6863132a6444e', 'Applet', 'ant-design:star-outlined', '/wechatDevelopmentPlatform/applet/index.vue', 1, 1, 'wechatDevelopmentPlatform:applet:list', NULL, 5, '/wechatDevelopmentPlatform/applet', '小程序管理', 0, '2023-06-07 15:20:56', '1', '2023-06-07 16:35:08', '1');
INSERT INTO `cp_oam_menu` VALUES ('913147f25f3721685f74570df0ed6f29', '56159c5249674322afe4577ecc4e4fb0', 'Account', 'ant-design:user-switch-outlined', '/system/account/index.vue', 1, 1, 'system:account:list', NULL, 30, '/system/account', '账号管理', 0, '2022-10-14 16:12:48', '1', '2022-10-20 11:23:18', '1');
INSERT INTO `cp_oam_menu` VALUES ('97916ae22affe061ec9af71afc915af5', '07585353c7ed61cca5fba5ba0057fe9f', 'TaskDemand', 'ant-design:highlight-outlined', '/oamTask/taskDemand/Index.vue', 1, 1, 'oamTask:taskDemand:list', NULL, 20, '/oamTask/taskDemand', '需求管理', 0, '2023-05-30 15:33:40', '1', '2023-09-26 15:26:49', '1');
INSERT INTO `cp_oam_menu` VALUES ('9f617344d80b7cdd8ffe7134b6b123c1', 'ff2f547cefb7e18a0b922afb3e491d87', NULL, NULL, 'LAYOUT', 1, 2, 'system:role:remove', NULL, 20, NULL, '删除角色', 0, '2022-10-20 10:26:21', '1', '2022-10-20 10:26:21', '1');
INSERT INTO `cp_oam_menu` VALUES ('9f6ff374ed8c9c48152bb7f571688a1a', '913147f25f3721685f74570df0ed6f29', NULL, NULL, 'LAYOUT', 1, 2, 'system:account:remove', NULL, 20, NULL, '删除账号', 0, '2022-10-20 11:23:52', '1', '2022-10-20 11:23:52', '1');
INSERT INTO `cp_oam_menu` VALUES ('9fb84dd03cb4e7e7722325d8aaa0161d', '883112b812224735d2a71b120d0bdf66', NULL, NULL, 'LAYOUT', 1, 2, 'system:dept:insert', NULL, 0, NULL, '新增部门', 0, '2022-10-19 17:26:49', '1', '2022-10-19 17:45:13', '1');
INSERT INTO `cp_oam_menu` VALUES ('ae8d81c31d13607b6f4b1962df01d469', 'bdaf51dd6319b24f7ba1c8d2ae11b953', 'Campus', 'ant-design:linkedin-filled', '/brandAndCampus/campus/index.vue', 1, 1, 'brandAndCampus:campus:list', NULL, 5, '/brandAndCampus/campus', '校区管理', 0, '2023-06-07 09:53:22', '1', '2023-09-14 10:15:35', '1');
INSERT INTO `cp_oam_menu` VALUES ('ae9a4ffa962c4bb9369332f18d5a7c27', 'fc0534b43c89ab33cd5c7c7a61cd8af9', 'Analysis', 'ion:grid-outline', '/dashboard/analysis/index.vue', 1, 1, NULL, NULL, 0, '/dashboard/analysis', '分析页', 1, '2022-10-19 16:05:38', '1', '2022-10-19 17:13:28', '1');
INSERT INTO `cp_oam_menu` VALUES ('bdaf51dd6319b24f7ba1c8d2ae11b953', NULL, 'BrandAndCampus', 'ant-design:sketch-outlined', 'LAYOUT', 1, 0, NULL, NULL, 30, '/brandAndCampus', '品牌校区', 0, '2023-06-01 17:58:10', '1', '2023-06-01 17:58:10', '1');
INSERT INTO `cp_oam_menu` VALUES ('c29ebe0bfbc9d62412c0a663175f82ec', '07585353c7ed61cca5fba5ba0057fe9f', 'AuditList', 'ant-design:alert-twotone', '/oamTask/auditList/Index.vue', 1, 1, 'oamTask:taskAudit:list', NULL, 10, '/oamTask/auditList', '审核列表', 0, '2023-05-19 18:06:09', '1', '2023-09-26 15:26:43', '1');
INSERT INTO `cp_oam_menu` VALUES ('c702e78723fbd8483b797fafd8205cd0', 'ff2f547cefb7e18a0b922afb3e491d87', NULL, NULL, 'LAYOUT', 1, 2, 'system:role:update', NULL, 10, NULL, '修改角色', 0, '2022-10-20 10:26:04', '1', '2022-10-20 10:26:04', '1');
INSERT INTO `cp_oam_menu` VALUES ('ca262b7fc779b93b677b687cf53f21ce', '34b34b1461e9d8ff28904bdcebf6c801', NULL, NULL, 'LAYOUT', 1, 2, 'brandAndCampus:brandStaff:insert', NULL, 0, NULL, '添加品牌管理员', 0, '2023-06-02 11:26:01', '1', '2023-09-14 17:49:51', '1');
INSERT INTO `cp_oam_menu` VALUES ('cbabba6bad9ed10af0c0adf1ad669344', '90fb318a81def682de9c48b0fd05cc75', NULL, NULL, 'LAYOUT', 1, 2, 'wechatDevelopmentPlatform:applet:update', NULL, 10, NULL, '修改小程序', 0, '2023-06-07 15:29:28', '1', '2023-06-07 15:29:28', '1');
INSERT INTO `cp_oam_menu` VALUES ('d31018cf901c9d5cfecb0c112ac3f1d0', '883112b812224735d2a71b120d0bdf66', NULL, NULL, 'LAYOUT', 1, 2, 'system:dept:remove', NULL, 20, NULL, '删除部门', 0, '2022-10-19 17:56:04', '1', '2022-10-19 17:56:04', '1');
INSERT INTO `cp_oam_menu` VALUES ('dd510cfe81e9f4659caed569da35e415', '34b34b1461e9d8ff28904bdcebf6c801', NULL, NULL, 'LAYOUT', 1, 2, 'brandAndCampus:brandStaff:remove', NULL, 10, NULL, '删除品牌管理员', 0, '2023-06-02 11:26:37', '1', '2023-09-14 17:50:02', '1');
INSERT INTO `cp_oam_menu` VALUES ('df7de32544aaf7b74aa7c6aaf684e5c4', 'ff2f547cefb7e18a0b922afb3e491d87', NULL, NULL, 'LAYOUT', 1, 2, 'system:role:insert', NULL, 0, NULL, '新增角色', 0, '2022-10-20 10:25:44', '1', '2022-10-20 10:25:44', '1');
INSERT INTO `cp_oam_menu` VALUES ('fc0534b43c89ab33cd5c7c7a61cd8af9', NULL, 'Dashboard', 'ion:grid-outline', 'LAYOUT', 1, 0, NULL, '/dashboard/analysis', 0, '/dashboard', '系统概况', 0, '2022-09-29 22:48:18', '1', '2022-10-19 17:13:37', '1');
INSERT INTO `cp_oam_menu` VALUES ('ff2f547cefb7e18a0b922afb3e491d87', '56159c5249674322afe4577ecc4e4fb0', 'Role', 'ant-design:crown-filled', '/system/role/index.vue', 1, 1, 'system:role:list', NULL, 10, '/system/role', '角色管理', 0, '2022-10-02 20:06:22', '1', '2022-10-20 10:25:06', '1');

-- ----------------------------
-- Table structure for pp_oam_role
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_role`;
CREATE TABLE `cp_oam_role`  (
  `id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  `role_name` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色名称',
  `role_value` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色值',
  `status` tinyint(1) NULL DEFAULT 1 COMMENT '状态(1启用;0停用)',
  `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '备注',
  `order_no` int(0) NULL DEFAULT NULL COMMENT '排序',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uni_role_value`(`role_value`) USING BTREE COMMENT '角色值唯一'
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统角色表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_role
-- ----------------------------
INSERT INTO `cp_oam_role` VALUES ('40bfee343c625523fc3763353996c6ef', '超级管理员', 'superAdmin', 1, '超级管理员', 0, '2023-03-21 20:38:30', '1', '2023-03-21 20:38:33', '1');

-- ----------------------------
-- Table structure for pp_oam_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_role_menu`;
CREATE TABLE `cp_oam_role_menu`  (
  `role_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色id',
  `menu_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单id',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  PRIMARY KEY (`role_id`, `menu_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统-角色-菜单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_role_menu
-- ----------------------------

-- ----------------------------
-- Table structure for pp_oam_staff
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_staff`;
CREATE TABLE `cp_oam_staff`  (
  `id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '姓名',
  `dept_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门id',
  `user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户id',
  `staff_type` int(0) NULL DEFAULT NULL COMMENT '员工类型(0:技术人员;1:售后人员;2:管理人员)',
  `role_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色id',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  `is_delete` tinyint(1) NULL DEFAULT 0 COMMENT '逻辑删除(0否1是)',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `fk_user_id`(`user_id`) USING BTREE,
  CONSTRAINT `cp_oam_staff_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `cp_sys_user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '员工表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_staff
-- ----------------------------

-- ----------------------------
-- Table structure for pp_oam_task
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_task`;
CREATE TABLE `cp_oam_task`  (
  `id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  `task_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务名',
  `task_type` int(0) NULL DEFAULT NULL COMMENT '任务类型(0:迭代;1:需求;2:工单)',
  `responsible_staff_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主要负责员工id',
  `task_status` int(0) NULL DEFAULT NULL COMMENT '任务状态(-1:失败;0:待审核;1:待接受;2:进行中;3:已完成;4:逾期;5:暂停;6:逾期完成)',
  `task_item` int(0) NULL DEFAULT NULL COMMENT '任务项(0:开发中;1:待测试:2:待部署;3:已归档)',
  `task_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '任务内容',
  `task_weight` int(0) NULL DEFAULT NULL COMMENT '任务权重',
  `task_rating` int(0) NULL DEFAULT NULL COMMENT '任务评级(0:A;1:B;2:C;3:D;4:E)',
  `attachment_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '附件地址',
  `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '备注',
  `expected_completion_date` date NULL DEFAULT NULL COMMENT '预期完成日期',
  `completion_date` date NULL DEFAULT NULL COMMENT '完成日期',
  `task_receipt_time` datetime(0) NULL DEFAULT NULL COMMENT '任务接收时间',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  `is_delete` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除(0否1是)',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'OAM-任务表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_task
-- ----------------------------

-- ----------------------------
-- Table structure for pp_oam_task_demand
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_task_demand`;
CREATE TABLE `cp_oam_task_demand`  (
  `id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  `task_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务id',
  `mechanism_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户id',
  `brand_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '品牌id',
  `campus_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '校区id',
  `demand_type` int(0) NULL DEFAULT NULL COMMENT '需求类型(0:轻;1:缓;2:急;3:重)',
  `record_staff_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '记录员工id',
  `sign_pic` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '签约图片',
  `sign_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '签约二维码',
  `prepayment` decimal(10, 2) NULL DEFAULT NULL COMMENT '预付款',
  `payable` decimal(10, 2) NULL DEFAULT NULL COMMENT '应付款',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  `is_delete` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除(0否1是)',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'OAM-任务-需求表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_task_demand
-- ----------------------------

-- ----------------------------
-- Table structure for pp_oam_task_staff_group
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_task_staff_group`;
CREATE TABLE `cp_oam_task_staff_group`  (
  `id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  `task_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务id',
  `staff_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '员工id',
  `grade_point` int(0) NULL DEFAULT NULL COMMENT '绩点',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `task_staff_key`(`task_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'OAM-任务-关联员工任务组表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_task_staff_group
-- ----------------------------

-- ----------------------------
-- Table structure for pp_oam_task_work_order
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_task_work_order`;
CREATE TABLE `cp_oam_task_work_order`  (
  `id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  `task_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务id',
  `brand_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '品牌id',
  `campus_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '校区id',
  `product_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品id',
  `phone_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '问题手机号',
  `record_staff_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '记录员工id',
  `finish_time` datetime(0) NULL DEFAULT NULL COMMENT '办结时间',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  `is_delete` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除(0否1是)',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务-工单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_task_work_order
-- ----------------------------

-- ----------------------------
-- Table structure for pp_oam_task_work_order_record
-- ----------------------------
DROP TABLE IF EXISTS `cp_oam_task_work_order_record`;
CREATE TABLE `cp_oam_task_work_order_record`  (
  `id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  `task_work_order_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务工单id',
  `record_staff_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '记录员工id',
  `record_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '记录内容',
  `attachment_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '附件地址',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人id',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_user_id` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务-工单-记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of pp_oam_task_work_order_record
-- ----------------------------

SET FOREIGN_KEY_CHECKS = 1;
