/*
Navicat MySQL Data Transfer

Source Server         : 111
Source Server Version : 80012
Source Host           : 127.0.0.1:3306
Source Database       : dingdingoa

Target Server Type    : MYSQL
Target Server Version : 80012
File Encoding         : 65001

Date: 2022-02-24 09:14:50
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for `tb_data_dictionary`
-- ----------------------------
DROP TABLE IF EXISTS `tb_data_dictionary`;
CREATE TABLE `tb_data_dictionary` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(24) DEFAULT NULL,
  `data_key` varchar(255) NOT NULL,
  `data_value` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `param1` varchar(255) DEFAULT NULL,
  `param2` varchar(255) DEFAULT NULL,
  `param3` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of tb_data_dictionary
-- ----------------------------
INSERT INTO `tb_data_dictionary` VALUES ('1', 'dingding_corp_code', 'ding80fe28c19ff5653b35c2f4657eb6378f', 'FpFSX7YpcznEGCwgIBmCUciG9cf3ghpxDXifElPhHdTS4KQZxJOWJWkCDIJ0x1Hn', '钉钉corpid和corpsecret', 'zh', null, null);
INSERT INTO `tb_data_dictionary` VALUES ('2', 'corp_code', 'zh', '珠海市四维时代网络科技有限公司', '企业名称', null, null, null);
INSERT INTO `tb_data_dictionary` VALUES ('3', 'company', '1', '珠海市四维时代网络科技有限公司', null, null, null, null);
INSERT INTO `tb_data_dictionary` VALUES ('4', 'company', '2', '中德（珠海）人工智能研究院有限公司', null, null, null, null);
INSERT INTO `tb_data_dictionary` VALUES ('5', 'company', '3', '芜湖：中德人工智能研究院有限公司', null, null, null, null);
INSERT INTO `tb_data_dictionary` VALUES ('6', 'company', '4', '芜湖四维时代智能科技有限公司', null, null, null, null);
INSERT INTO `tb_data_dictionary` VALUES ('7', 'company', '5', '中德（江门）人工智能研究院有限公司', null, null, null, null);
INSERT INTO `tb_data_dictionary` VALUES ('8', 'company', '6', '广东四维看看智能设备有限公司', null, null, null, null);

-- ----------------------------
-- Table structure for `tb_department`
-- ----------------------------
DROP TABLE IF EXISTS `tb_department`;
CREATE TABLE `tb_department` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dept_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `dept_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `parent_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `rec_status` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `region` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=109 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

-- ----------------------------
-- Records of tb_department
-- ----------------------------
INSERT INTO `tb_department` VALUES ('1', '1', '珠海市四维时代网络科技有限公司', null, 'A', 'zh');
INSERT INTO `tb_department` VALUES ('2', '53153761', '人力资源部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('3', '65038807', '平面美术部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('4', '65038808', '市场部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('5', '65038809', 'web开发部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('6', '65038810', '图像算法部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('7', '65038811', '行政部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('8', '65038812', '应用程序研发部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('9', '65038813', '三维项目部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('10', '65038814', '硬件部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('11', '65038815', '三维创意部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('12', '65038816', '应用程序项目部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('13', '65038817', '知识产权部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('14', '65120876', '财务部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('15', '65120877', '品牌策划部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('16', '68250008', '对外合作部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('17', '71767501', '项目部', '1', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('18', '101225060', 'UI设计部', '1', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('19', '155689133', '测试部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('20', '339830996', '硬件部团队', '65038814', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('21', '340357226', '产品部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('22', '340368176', '供应链管理部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('23', '393690411', 'A01. 四维看看 app、网页展示、网页编辑及后台算法', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('24', '393546765', 'ZHS999999_1 其他市场项目', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('25', '393614656', 'A02. 四目看看四目相机硬件开发', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('26', '393445930', 'ZHS190205_1 江门市政务服务数据管理局_智慧城市建设', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('27', '393627781', 'ZYS190305_1 五邑大学_学习馆建设', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('28', '393475849', 'A03. 四维看展平台开发', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('29', '393576629', 'A04. 指房宝及类似四维看看周边app的开发', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('30', '393492650', 'JYS191006_1 五邑大学_工业4.0智慧工厂标准化技术开发', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('31', '393550628', 'ZHS200102_1 数字江门网络科技有限公司_智慧城市GIS平台一期建设', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('32', '393460967', 'ZHS200303_1 五邑大学_自动测温设备', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('33', '393715233', 'ZHS2006013_1 江门市人才岛指挥部_三维采集数字化', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('34', '393449933', 'ZHS2007024_1  五邑大学_退役军人馆', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('35', '393487844', 'ZHS191235_1 宁波博物馆固定陈列数字展厅制作', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('36', '393407892', 'ZHS191004_1 上海市历史博物馆_线上展览数字化', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('37', '393495963', 'ZHS191001_1 上海市历史博物馆新馆古建筑整体保护与数据采集', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('38', '393578622', 'ZHS2006020_1 上海原圈网络科技有限公司_四维带看软件功能开发', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('39', '393540603', 'ZHS2006021_1 广州市例外服饰有限公司_大场景建模及导览', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('40', '393736214', 'ZHS2005001_1 成都名人馆_成都全搜索', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('41', '393643517', 'ZHS2006010_1 成都全搜索科技有限责任公司_虚拟展厅及网页制作', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('42', '393511840', 'WYS2006019_1 芜湖圣美孚科技_数字展厅服务', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('43', '393766207', 'ZHS191002_1 中国（海南）南海博物馆_三维建模等', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('44', '393578620', 'WSS2006014_1 南海博物馆_做海_南海渔家文化展', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('45', '393535938', 'ZHS2007038_1  海南省博物馆_文物数字化保护', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('46', '393567568', 'ZHS191110_1 深圳消安科技有限公司_四维看看pro', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('47', '393771126', 'ZHS200403_1 珠海港信_九江展厅硬件采购及安装', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('48', '393588707', 'ZHS200409_1 中共珠海纪律检查委员会_杨鲍安纪念馆（二期）', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('49', '393610574', 'ZHS2005006_1 淇澳端午祈福巡游线上体验_珠海中视瑞达', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('50', '393653430', 'ZHS2005007_1 校园大场景三维数字化_北京师范大学_香港浸会大学联合学院', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('51', '393497885', 'ZHS2006009_1 公益长城', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('52', '393630608', 'ZHS2007023_1  珠海市自然资源局_改革开放历史建筑数字化', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('53', '393731339', 'ZHS2007033_1  珠海市横琴新区综合执法局_律道公园三期项目', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('54', '393540601', 'WSS2006015_1 李鸿章故居陈列馆_大场景三维数字化服务', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('55', '393648411', 'ZHS2006012_1 广东鸿威国际会展有限公司_四维看看pro深度合作', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('56', '393690429', 'ZHS2006011_1 郑州32738部队_数字史馆项目', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('57', '393627782', 'ZHS2006017_1 源度度（上海）数据科技有限公司_餐饮业万物墙', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('58', '393638492', 'WYS191210_1 智慧博物馆建设_义乌市文化和广电旅游体育局', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('59', '393784079', 'ZHS191203_1 南京市高淳区博物馆_三维文物建模', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('60', '393729246', 'ZHS200305_1 鸦片战争博物馆_三维建模', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('61', '393678370', 'WSS2006018_1 义乌市博物馆_海丝绝响_馆藏清代广东十三行外销艺术品特展三维数字化', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('62', '393790073', 'WSS2006016_1 台州市黄岩区博物馆_大场景及文物三维数字化服务', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('63', '393748184', 'ZHS200404_1 深圳市易尚展示股份有限公司_家具展厅三维数字化（二期）', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('64', '393471680', 'ZHS2005002_1 深圳市易尚_公寓样板间模型', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('65', '393463857', 'ZHS2005005_1 深圳市易尚_梵华怡居（北京）家居大场景', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('66', '393795048', 'ZHS200402_1 上海明酷VR全景拍摄和UI设计（一期）', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('67', '393799040', 'ZHS200410_1 上海明酷VR全景拍摄和UI设计（二期）', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('68', '393471678', 'ZHS2005003_1 上海明酷VR全景拍摄和UI设计（三期）', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('69', '393550630', 'ZHS2005008_1 上海明酷VR全景拍摄和UI设计（四期）', '393453991', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('70', '393406971', '珠海四维', '1', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('71', '393407887', 'A23. 四维时代、中德研究院、开发者平台网站维护升级', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('72', '393422994', 'A25. 看房小程序', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('73', '393450945', '市场部', '393786073', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('74', '393453991', '市场项目号', '1', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('75', '393456982', '市场部', '393786074', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('76', '393528774', 'A21. 四维AR的维护升级及迭代', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('77', '393529600', 'A19. 4DMODEL 平台的升级及建设', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('78', '393571727', '人事行政部', '393786073', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('79', '393571754', 'A09. 人像数字化及展示系统研发', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('80', '393594645', 'A14. AR类开发项目', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('81', '393598683', 'A08. 可交互式小物体（文物、商品）展示 （playcanvers）', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('82', '393611491', 'A15. 四维时代展厅维护升级及相关项目', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('83', '393613568', '行政部', '393786074', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('84', '393627780', 'A24. AR Base', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('85', '393635529', 'A11. 工业机器手臂光栅扫描及控制研发', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('86', '393644572', 'A07. 可交互式大场景项目 （类似武侯祠）', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('87', '393660532', 'A28. 四维看看Sketch', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('88', '393665479', 'A10. 人脸数字化及展示系统研发', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('89', '393667413', 'A17. 画风迁移系统项目', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('90', '393675422', 'A12. 博物馆大场景、小物体数字化及app等周边开发项目', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('91', '393681425', '研发项目号', '1', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('92', '393706280', '技术部', '393786073', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('93', '393715232', 'A18. 互动桌面系统开发', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('94', '393727356', 'A27. 一键换装', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('95', '393728218', 'A06. 智慧城市项目', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('96', '393748179', 'A13. 虚拟场景及虚拟博物馆的建设展示项目', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('97', '393755190', 'A22. 四维时刻', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('98', '393761226', 'A26. 看店小程序', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('99', '393770181', 'A20. 三维物体可交互式编辑web平台建设', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('100', '393774086', '项目部', '393786073', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('101', '393786073', '芜湖四维', '1', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('102', '393786074', '厦门四维', '1', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('103', '393788078', 'A16. 万物墙系统项目', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('104', '393811015', 'A05. 四维看看网站、众筹等宣传推广', '393681425', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('105', '423185504', '供应链采购团队', '340368176', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('106', '426036379', '项目策划部', '393406971', 'A', 'zh');
INSERT INTO `tb_department` VALUES ('107', '473169925', '项目实施部', '393406971', 'A', 'ZH');
INSERT INTO `tb_department` VALUES ('108', '517576516', '智慧城市事业部', '393406971', 'A', 'ZH');

-- ----------------------------
-- Table structure for `tb_process`
-- ----------------------------
DROP TABLE IF EXISTS `tb_process`;
CREATE TABLE `tb_process` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `process_code` varchar(255) DEFAULT NULL,
  `process_name` varchar(255) DEFAULT NULL,
  `region` varchar(50) DEFAULT NULL,
  `rec_status` varchar(2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of tb_process
-- ----------------------------
INSERT INTO `tb_process` VALUES ('1', 'PROC-A31BACD1-A69C-486A-9784-B2B9562AE69D', '付款申请', 'zh', 'A');
INSERT INTO `tb_process` VALUES ('2', 'PROC-668226E8-D604-4973-B795-281F91C12B8E', '报销申请', 'zh', 'A');
INSERT INTO `tb_process` VALUES ('3', 'PROC-FF6YRLE1N2-ZOVLONQNOOFLM28F2Z1Q1-I8U0S74J-B2', '差旅报销', 'zh', 'A');
INSERT INTO `tb_process` VALUES ('4', 'PROC-WIYJMNZV-33KMTARNMFA100GWIZME3-EMXD535J-M', '支付宝付款', 'zh', 'A');
INSERT INTO `tb_process` VALUES ('5', 'PROC-22B450C8-7F73-4648-8CC7-2C054772F74B', '个人借支', 'zh', 'A');
INSERT INTO `tb_process` VALUES ('6', 'PROC-3KYJ33FV-D8IQYR8ZSQP90UKB7P1O1-NCCUCMAJ-G', '资金调拨', 'zh', 'A');
INSERT INTO `tb_process` VALUES ('7', 'PROC-LV8LHSDV-YUTU511YP19NO0ZWCUO33-211SSOGJ-6', '采购申请', 'zh', 'A');
INSERT INTO `tb_process` VALUES ('8', 'PROC-0CC0B727-5792-4794-B40D-D5AB40D8DC3A', '请假', 'zh', 'I');
INSERT INTO `tb_process` VALUES ('9', 'PROC-HFMKHA3W-24QM2K0HT342HS0VEU6M1-SD4SAC5J-01', '请假申请', 'zh', 'I');
INSERT INTO `tb_process` VALUES ('10', 'PROC-3KYJ23FV-TU4NMJ3ZRN8B5YBIKYSX1-UVFT6W5J-R', '出差申请', 'zh', 'I');
INSERT INTO `tb_process` VALUES ('11', 'PROC-64CE5980-50BD-4A09-97C7-4A22ED7EB0C3', '通用审批', 'zh', 'I');
INSERT INTO `tb_process` VALUES ('12', 'PROC-FD2C131D-D38D-4048-8E55-E31E79F5324B', '用印申请', 'zh', 'I');
INSERT INTO `tb_process` VALUES ('13', 'PROC-TXEKLZ3V-MI1T44UCOCULP311QSAN3-NQEUF6EJ-9', '用车申请', 'zh', 'I');
INSERT INTO `tb_process` VALUES ('14', 'PROC-EF6YJX2TL2-F4WLDFZZPRRD2F3R3OFX1-SQX8484J-13', '市场立项', 'zh', 'I');
INSERT INTO `tb_process` VALUES ('15', 'PROC-3KYJ13FV-SBVMCF0HR9DV7HWFN32S1-NIF5BJ5J-R', '市场项目任务书', 'zh', 'I');
INSERT INTO `tb_process` VALUES ('16', 'PROC-FF6YRLE1N2-84WL2KI6UK6SF7NFMLBR1-0K2X284J-A3', '开票申请', 'zh', 'A');
INSERT INTO `tb_process` VALUES ('17', 'PROC-A26C0D31-61BF-4DB2-B6FC-C503681A9D2D', '付款申请（供应链采购）', 'zh', 'A');

-- ----------------------------
-- Table structure for `tb_resource`
-- ----------------------------
DROP TABLE IF EXISTS `tb_resource`;
CREATE TABLE `tb_resource` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `create_time` datetime DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `icon` varchar(255) DEFAULT NULL,
  `is_hide` int(11) DEFAULT NULL,
  `level` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `sort` int(11) DEFAULT NULL,
  `source_key` varchar(255) DEFAULT NULL,
  `source_url` varchar(255) DEFAULT NULL,
  `type` int(11) DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FKf5ra2gn0xedeida2op8097sr5` (`parent_id`),
  CONSTRAINT `FKf5ra2gn0xedeida2op8097sr5` FOREIGN KEY (`parent_id`) REFERENCES `tb_resource` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of tb_resource
-- ----------------------------
INSERT INTO `tb_resource` VALUES ('1', '2017-01-10 13:56:51', '用户管理', null, '0', '2', '用户管理', '1', 'system:user:index', '/admin/user/index', '1', '2017-01-10 13:59:01', '0');
INSERT INTO `tb_resource` VALUES ('2', '2017-01-10 13:56:51', '用户编辑', null, '0', '3', '用户编辑', '1', 'system:user:edit', '/admin/user/edit*', '2', '2017-01-10 16:26:42', '1');
INSERT INTO `tb_resource` VALUES ('3', '2017-01-11 16:48:48', '用户添加', null, '0', '3', '用户添加', '2', 'system:user:add', '/admin/user/add', '2', '2017-01-11 16:49:26', '1');
INSERT INTO `tb_resource` VALUES ('4', '2017-01-11 16:48:48', '用户删除', null, '0', '3', '用户删除', '3', 'system:user:deleteBatch', '/admin/user/deleteBatch', '2', '2017-01-18 14:11:41', '1');
INSERT INTO `tb_resource` VALUES ('5', '2017-01-11 16:48:48', '角色分配', null, '0', '3', '角色分配', '4', 'system:user:grant', '/admin/user/grant/**', '2', '2017-01-18 14:11:51', '1');
INSERT INTO `tb_resource` VALUES ('6', '2017-01-12 16:45:10', '角色管理', null, '0', '2', '角色管理', '2', 'system:role:index', '/admin/role/index', '1', '2017-01-12 16:46:52', '0');
INSERT INTO `tb_resource` VALUES ('7', '2017-01-12 16:47:02', '角色编辑', null, '0', '3', '角色编辑', '1', 'system:role:edit', '/admin/role/edit*', '2', '2017-01-18 10:24:06', '1');
INSERT INTO `tb_resource` VALUES ('8', '2017-01-12 16:47:23', '角色添加', null, '0', '3', '角色添加', '2', 'system:role:add', '/admin/role/add', '2', '2017-01-12 16:49:16', '6');
INSERT INTO `tb_resource` VALUES ('9', '2017-01-12 16:47:23', '角色删除', null, '0', '3', '角色删除', '3', 'system:role:deleteBatch', '/admin/role/deleteBatch', '2', '2017-01-18 14:12:03', '6');
INSERT INTO `tb_resource` VALUES ('10', '2017-01-12 16:47:23', '资源分配', null, '0', '3', '资源分配', '4', 'system:role:grant', '/admin/role/grant/**', '2', '2017-01-18 14:12:11', '6');
INSERT INTO `tb_resource` VALUES ('11', '2017-01-17 11:21:12', '资源管理', null, '0', '2', '资源管理', '3', 'system:resource:index', '/admin/resource/index', '1', '2017-01-17 11:21:42', '0');
INSERT INTO `tb_resource` VALUES ('12', '2017-01-17 11:21:52', '资源编辑', null, '0', '3', '资源编辑', '1', 'system:resource:edit', '/admin/resource/edit*', '2', '2017-01-17 11:22:36', '11');
INSERT INTO `tb_resource` VALUES ('13', '2017-01-17 11:21:54', '资源添加', null, '0', '3', '资源添加', '2', 'system:resource:add', '/admin/resource/add', '2', '2017-01-17 11:22:39', '11');
INSERT INTO `tb_resource` VALUES ('14', '2017-01-17 11:21:54', '资源删除', null, '0', '3', '资源删除', '3', 'system:resource:deleteBatch', '/admin/resource/deleteBatch', '2', '2017-01-18 14:12:31', '11');
INSERT INTO `tb_resource` VALUES ('15', '2018-05-04 18:04:05', '钉钉管理', null, '0', '1', '钉钉管理', '4', 'dingding', 'javascript:void(0);', '1', '2018-05-04 18:05:33', null);
INSERT INTO `tb_resource` VALUES ('16', '2018-05-09 11:38:58', '审批', null, '0', '2', '审批', '1', 'dingding:examination:index', '/dingding/examination/index', '1', '2018-05-09 11:39:30', '15');
INSERT INTO `tb_resource` VALUES ('17', '2018-05-09 11:44:43', '审批查看', null, '0', '3', '审批查看', '1', 'dingding:examination:detail', '/dingding/examination/detail', '2', '2018-05-09 11:46:30', '16');
INSERT INTO `tb_resource` VALUES ('18', '2018-05-09 11:44:43', '审批下载', null, '0', '3', '审批查看', '2', 'dingding:examination:download', '/dingding/examination/download', '2', '2018-05-09 11:46:30', '16');
INSERT INTO `tb_resource` VALUES ('19', '2017-01-10 13:56:51', '系统管理', null, '0', '1', '系统管理', '1', 'system', 'javascript:void(0);', '1', '2017-01-10 13:59:01', null);

-- ----------------------------
-- Table structure for `tb_role`
-- ----------------------------
DROP TABLE IF EXISTS `tb_role`;
CREATE TABLE `tb_role` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `create_time` datetime DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `role_key` varchar(255) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of tb_role
-- ----------------------------
INSERT INTO `tb_role` VALUES ('1', '2017-01-09 17:25:30', '超级管理员', 'administrator', 'administrator', '0', '2017-01-09 17:26:25');
INSERT INTO `tb_role` VALUES ('2', '2018-05-09 11:33:51', '普通管理员', 'manager', 'manager', '0', '2018-05-09 11:33:51');

-- ----------------------------
-- Table structure for `tb_role_resource`
-- ----------------------------
DROP TABLE IF EXISTS `tb_role_resource`;
CREATE TABLE `tb_role_resource` (
  `role_id` int(11) NOT NULL,
  `resource_id` int(11) NOT NULL,
  PRIMARY KEY (`role_id`,`resource_id`),
  KEY `FK868kc8iic48ilv5npa80ut6qo` (`resource_id`),
  CONSTRAINT `FK7ffc7h6obqxflhj1aq1mk20jk` FOREIGN KEY (`role_id`) REFERENCES `tb_role` (`id`),
  CONSTRAINT `FK868kc8iic48ilv5npa80ut6qo` FOREIGN KEY (`resource_id`) REFERENCES `tb_resource` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of tb_role_resource
-- ----------------------------
INSERT INTO `tb_role_resource` VALUES ('1', '0');
INSERT INTO `tb_role_resource` VALUES ('1', '1');
INSERT INTO `tb_role_resource` VALUES ('1', '2');
INSERT INTO `tb_role_resource` VALUES ('1', '3');
INSERT INTO `tb_role_resource` VALUES ('1', '4');
INSERT INTO `tb_role_resource` VALUES ('1', '5');
INSERT INTO `tb_role_resource` VALUES ('1', '6');
INSERT INTO `tb_role_resource` VALUES ('1', '7');
INSERT INTO `tb_role_resource` VALUES ('1', '8');
INSERT INTO `tb_role_resource` VALUES ('1', '9');
INSERT INTO `tb_role_resource` VALUES ('1', '10');
INSERT INTO `tb_role_resource` VALUES ('1', '11');
INSERT INTO `tb_role_resource` VALUES ('1', '12');
INSERT INTO `tb_role_resource` VALUES ('1', '13');
INSERT INTO `tb_role_resource` VALUES ('1', '14');
INSERT INTO `tb_role_resource` VALUES ('1', '15');
INSERT INTO `tb_role_resource` VALUES ('2', '15');
INSERT INTO `tb_role_resource` VALUES ('2', '16');
INSERT INTO `tb_role_resource` VALUES ('2', '17');
INSERT INTO `tb_role_resource` VALUES ('2', '18');

-- ----------------------------
-- Table structure for `tb_user`
-- ----------------------------
DROP TABLE IF EXISTS `tb_user`;
CREATE TABLE `tb_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `address` varchar(255) DEFAULT NULL,
  `avatar` varchar(255) DEFAULT NULL,
  `birthday` datetime DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  `delete_status` int(11) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `locked` int(11) DEFAULT NULL,
  `nick_name` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `sex` int(11) DEFAULT NULL,
  `telephone` varchar(255) DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  `user_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of tb_user
-- ----------------------------
INSERT INTO `tb_user` VALUES ('1', 'zh', '/assets/img/homepage_logo.png', '2017-01-09 17:26:39', '2017-01-09 17:26:41', '0', '超级管理员', 'whoismy8023@163.com', '0', 'admin', '3931MUEQD1939MQMLM4AISPVNE', '1', '15923930000', '2017-01-09 17:27:11', 'admin');
INSERT INTO `tb_user` VALUES ('2', 'zh', '/assets/img/homepage_logo.png', '2018-05-09 12:06:11', '2018-05-09 11:32:35', '0', '财务总监', '13115784152@qq.com', '0', '潘韬', '3931MUEQD1939MQMLM4AISPVNE', '1', '13115784152', '2018-05-09 11:32:35', 'pantao');
INSERT INTO `tb_user` VALUES ('3', 'zh', '/assets/img/homepage_logo.png', null, '2018-05-16 16:04:11', '0', '财务部-林振滨', '14578452044@qq.com', '0', '林振滨', '3I4C0CAVOBSTHLSDHB4RUJODNN', '1', '14578452044', '2018-05-16 16:06:01', 'linzhenbin');
INSERT INTO `tb_user` VALUES ('4', 'zh', '/assets/img/homepage_logo.png', null, '2018-05-16 16:04:42', '0', '财务部-肖双宇', '14578452044@qq.com', '0', '肖双宇', '3931MUEQD1939MQMLM4AISPVNE', '0', '14578452044', '2018-05-16 16:06:09', 'xiaoshuangyu');
INSERT INTO `tb_user` VALUES ('5', 'ZH', '/assets/img/homepage_logo.png', null, '2021-02-24 17:25:41', '0', '财务部-葛凡荻', '14578452044@qq.com', '0', '葛凡荻', '3931MUEQD1939MQMLM4AISPVNE', '0', '14578452044', '2021-02-24 18:39:16', 'gefandi');

-- ----------------------------
-- Table structure for `tb_user_role`
-- ----------------------------
DROP TABLE IF EXISTS `tb_user_role`;
CREATE TABLE `tb_user_role` (
  `user_id` int(11) NOT NULL,
  `role_id` int(11) NOT NULL,
  PRIMARY KEY (`user_id`,`role_id`),
  KEY `FKea2ootw6b6bb0xt3ptl28bymv` (`role_id`),
  CONSTRAINT `FK7vn3h53d0tqdimm8cp45gc0kl` FOREIGN KEY (`user_id`) REFERENCES `tb_user` (`id`),
  CONSTRAINT `FKea2ootw6b6bb0xt3ptl28bymv` FOREIGN KEY (`role_id`) REFERENCES `tb_role` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of tb_user_role
-- ----------------------------
INSERT INTO `tb_user_role` VALUES ('1', '1');
INSERT INTO `tb_user_role` VALUES ('2', '2');
INSERT INTO `tb_user_role` VALUES ('3', '2');
INSERT INTO `tb_user_role` VALUES ('4', '2');
INSERT INTO `tb_user_role` VALUES ('5', '2');
