/*
 Navicat Premium Data Transfer

 Source Server         : local 3307
 Source Server Type    : MySQL
 Source Server Version : 80026
 Source Host           : localhost:3307
 Source Schema         : award_sys

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

 Date: 10/02/2022 17:11:02
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for dict_country
-- ----------------------------
DROP TABLE IF EXISTS `dict_country`;
CREATE TABLE `dict_country`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '符号',
  `label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '显示文本',
  `sort` int NULL DEFAULT NULL COMMENT '排序',
  `enable` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否启用',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 188 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '职位' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dict_country
-- ----------------------------
INSERT INTO `dict_country` VALUES (0, 'ZG', '中国', 0, b'1');
INSERT INTO `dict_country` VALUES (1, 'AGL', '安哥拉', 1, b'1');
INSERT INTO `dict_country` VALUES (2, 'AFH', '阿富汗', 2, b'1');
INSERT INTO `dict_country` VALUES (3, 'AEBNY', '阿尔巴尼亚', 3, b'1');
INSERT INTO `dict_country` VALUES (4, 'AEJLY', '阿尔及利亚', 4, b'1');
INSERT INTO `dict_country` VALUES (5, 'ADEGHG', '安道尔共和国', 5, b'1');
INSERT INTO `dict_country` VALUES (6, 'AGLD', '安圭拉岛', 6, b'1');
INSERT INTO `dict_country` VALUES (7, 'ATGHBBD', '安提瓜和巴布达', 7, b'1');
INSERT INTO `dict_country` VALUES (8, 'AGT', '阿根廷', 8, b'1');
INSERT INTO `dict_country` VALUES (9, 'YMNY', '亚美尼亚', 9, b'1');
INSERT INTO `dict_country` VALUES (10, 'ASS', '阿森松', 10, b'1');
INSERT INTO `dict_country` VALUES (11, 'ADLY', '澳大利亚', 11, b'1');
INSERT INTO `dict_country` VALUES (12, 'ADL', '奥地利', 12, b'1');
INSERT INTO `dict_country` VALUES (13, 'ASBJ', '阿塞拜疆', 13, b'1');
INSERT INTO `dict_country` VALUES (14, 'BHM', '巴哈马', 14, b'1');
INSERT INTO `dict_country` VALUES (15, 'BL', '巴林', 15, b'1');
INSERT INTO `dict_country` VALUES (16, 'MJLG', '孟加拉国', 16, b'1');
INSERT INTO `dict_country` VALUES (17, 'BBDS', '巴巴多斯', 17, b'1');
INSERT INTO `dict_country` VALUES (18, 'BELS', '白俄罗斯', 18, b'1');
INSERT INTO `dict_country` VALUES (19, 'BLS', '比利时', 19, b'1');
INSERT INTO `dict_country` VALUES (20, 'BLZ', '伯利兹', 20, b'1');
INSERT INTO `dict_country` VALUES (21, 'BN', '贝宁', 21, b'1');
INSERT INTO `dict_country` VALUES (22, 'BMDQD', '百慕大群岛', 22, b'1');
INSERT INTO `dict_country` VALUES (23, 'BLWY', '玻利维亚', 23, b'1');
INSERT INTO `dict_country` VALUES (24, 'BCWN', '博茨瓦纳', 24, b'1');
INSERT INTO `dict_country` VALUES (25, 'BX', '巴西', 25, b'1');
INSERT INTO `dict_country` VALUES (26, 'WL', '文莱', 26, b'1');
INSERT INTO `dict_country` VALUES (27, 'BJLY', '保加利亚', 27, b'1');
INSERT INTO `dict_country` VALUES (28, 'BJNFS', '布基纳法索', 28, b'1');
INSERT INTO `dict_country` VALUES (29, 'MD', '缅甸', 29, b'1');
INSERT INTO `dict_country` VALUES (30, 'BLD', '布隆迪', 30, b'1');
INSERT INTO `dict_country` VALUES (31, 'KML', '喀麦隆', 31, b'1');
INSERT INTO `dict_country` VALUES (32, 'JND', '加拿大', 32, b'1');
INSERT INTO `dict_country` VALUES (33, 'KMQD', '开曼群岛', 33, b'1');
INSERT INTO `dict_country` VALUES (34, 'ZFGHG', '中非共和国', 34, b'1');
INSERT INTO `dict_country` VALUES (35, 'ZD', '乍得', 35, b'1');
INSERT INTO `dict_country` VALUES (36, 'ZL', '智利', 36, b'1');
INSERT INTO `dict_country` VALUES (38, 'GLBY', '哥伦比亚', 38, b'1');
INSERT INTO `dict_country` VALUES (39, 'GG', '刚果', 39, b'1');
INSERT INTO `dict_country` VALUES (40, 'KKQD', '库克群岛', 40, b'1');
INSERT INTO `dict_country` VALUES (41, 'GSDLJ', '哥斯达黎加', 41, b'1');
INSERT INTO `dict_country` VALUES (42, 'GB', '古巴', 42, b'1');
INSERT INTO `dict_country` VALUES (43, 'SPLS', '塞浦路斯', 43, b'1');
INSERT INTO `dict_country` VALUES (44, 'JK', '捷克', 44, b'1');
INSERT INTO `dict_country` VALUES (45, 'DM', '丹麦', 45, b'1');
INSERT INTO `dict_country` VALUES (46, 'JBT', '吉布提', 46, b'1');
INSERT INTO `dict_country` VALUES (47, 'DMNJGHG', '多米尼加共和国', 47, b'1');
INSERT INTO `dict_country` VALUES (48, 'EGDE', '厄瓜多尔', 48, b'1');
INSERT INTO `dict_country` VALUES (49, 'AJ', '埃及', 49, b'1');
INSERT INTO `dict_country` VALUES (50, 'SEWD', '萨尔瓦多', 50, b'1');
INSERT INTO `dict_country` VALUES (51, 'ASNY', '爱沙尼亚', 51, b'1');
INSERT INTO `dict_country` VALUES (52, 'ASEBY', '埃塞俄比亚', 52, b'1');
INSERT INTO `dict_country` VALUES (53, 'FJ', '斐济', 53, b'1');
INSERT INTO `dict_country` VALUES (54, 'FL', '芬兰', 54, b'1');
INSERT INTO `dict_country` VALUES (55, 'FG', '法国', 55, b'1');
INSERT INTO `dict_country` VALUES (56, 'FSGYN', '法属圭亚那', 56, b'1');
INSERT INTO `dict_country` VALUES (57, 'JP', '加蓬', 57, b'1');
INSERT INTO `dict_country` VALUES (58, 'GBY', '冈比亚', 58, b'1');
INSERT INTO `dict_country` VALUES (59, 'GLJY', '格鲁吉亚', 59, b'1');
INSERT INTO `dict_country` VALUES (60, 'DG', '德国', 60, b'1');
INSERT INTO `dict_country` VALUES (61, 'JN', '加纳', 61, b'1');
INSERT INTO `dict_country` VALUES (62, 'ZBLT', '直布罗陀', 62, b'1');
INSERT INTO `dict_country` VALUES (63, 'XL', '希腊', 63, b'1');
INSERT INTO `dict_country` VALUES (64, 'GLND', '格林纳达', 64, b'1');
INSERT INTO `dict_country` VALUES (65, 'GD', '关岛', 65, b'1');
INSERT INTO `dict_country` VALUES (66, 'WDML', '危地马拉', 66, b'1');
INSERT INTO `dict_country` VALUES (67, 'JNY', '几内亚', 67, b'1');
INSERT INTO `dict_country` VALUES (68, 'GYN', '圭亚那', 68, b'1');
INSERT INTO `dict_country` VALUES (69, 'HD', '海地', 69, b'1');
INSERT INTO `dict_country` VALUES (70, 'HDLS', '洪都拉斯', 70, b'1');
INSERT INTO `dict_country` VALUES (71, 'XYL', '匈牙利', 71, b'1');
INSERT INTO `dict_country` VALUES (72, 'BD', '冰岛', 72, b'1');
INSERT INTO `dict_country` VALUES (73, 'YD', '印度', 73, b'1');
INSERT INTO `dict_country` VALUES (74, 'YDNXY', '印度尼西亚', 74, b'1');
INSERT INTO `dict_country` VALUES (75, 'YL', '伊朗', 75, b'1');
INSERT INTO `dict_country` VALUES (76, 'YLK', '伊拉克', 76, b'1');
INSERT INTO `dict_country` VALUES (77, 'AEL', '爱尔兰', 77, b'1');
INSERT INTO `dict_country` VALUES (78, 'YSL', '以色列', 78, b'1');
INSERT INTO `dict_country` VALUES (79, 'YDL', '意大利', 79, b'1');
INSERT INTO `dict_country` VALUES (80, 'KTDW', '科特迪瓦', 80, b'1');
INSERT INTO `dict_country` VALUES (81, 'YMJ', '牙买加', 81, b'1');
INSERT INTO `dict_country` VALUES (82, 'RB', '日本', 82, b'1');
INSERT INTO `dict_country` VALUES (83, 'YD', '约旦', 83, b'1');
INSERT INTO `dict_country` VALUES (84, 'JPZ', '柬埔寨', 84, b'1');
INSERT INTO `dict_country` VALUES (85, 'HSKST', '哈萨克斯坦', 85, b'1');
INSERT INTO `dict_country` VALUES (86, 'KNY', '肯尼亚', 86, b'1');
INSERT INTO `dict_country` VALUES (87, 'HG', '韩国', 87, b'1');
INSERT INTO `dict_country` VALUES (88, 'KWT', '科威特', 88, b'1');
INSERT INTO `dict_country` VALUES (89, 'JEJST', '吉尔吉斯坦', 89, b'1');
INSERT INTO `dict_country` VALUES (90, 'LW', '老挝', 90, b'1');
INSERT INTO `dict_country` VALUES (91, 'LTWY', '拉脱维亚', 91, b'1');
INSERT INTO `dict_country` VALUES (92, 'LBN', '黎巴嫩', 92, b'1');
INSERT INTO `dict_country` VALUES (93, 'LST', '莱索托', 93, b'1');
INSERT INTO `dict_country` VALUES (94, 'LBLY', '利比里亚', 94, b'1');
INSERT INTO `dict_country` VALUES (95, 'LBY', '利比亚', 95, b'1');
INSERT INTO `dict_country` VALUES (96, 'LZDSD', '列支敦士登', 96, b'1');
INSERT INTO `dict_country` VALUES (97, 'LTW', '立陶宛', 97, b'1');
INSERT INTO `dict_country` VALUES (98, 'LSB', '卢森堡', 98, b'1');
INSERT INTO `dict_country` VALUES (99, 'MDJSJ', '马达加斯加', 99, b'1');
INSERT INTO `dict_country` VALUES (100, 'MLW', '马拉维', 100, b'1');
INSERT INTO `dict_country` VALUES (101, 'MLXY', '马来西亚', 101, b'1');
INSERT INTO `dict_country` VALUES (102, 'MEDF', '马尔代夫', 102, b'1');
INSERT INTO `dict_country` VALUES (103, 'ML', '马里', 103, b'1');
INSERT INTO `dict_country` VALUES (104, 'MET', '马耳他', 104, b'1');
INSERT INTO `dict_country` VALUES (105, 'MTNK', '马提尼克', 105, b'1');
INSERT INTO `dict_country` VALUES (106, 'MLQS', '毛里求斯', 106, b'1');
INSERT INTO `dict_country` VALUES (107, 'MXG', '墨西哥', 107, b'1');
INSERT INTO `dict_country` VALUES (108, 'MEDW', '摩尔多瓦', 108, b'1');
INSERT INTO `dict_country` VALUES (109, 'MNG', '摩纳哥', 109, b'1');
INSERT INTO `dict_country` VALUES (110, 'MG', '蒙古', 110, b'1');
INSERT INTO `dict_country` VALUES (111, 'MTSLTD', '蒙特塞拉特岛', 111, b'1');
INSERT INTO `dict_country` VALUES (112, 'MLG', '摩洛哥', 112, b'1');
INSERT INTO `dict_country` VALUES (113, 'MSBK', '莫桑比克', 113, b'1');
INSERT INTO `dict_country` VALUES (114, 'NMBY', '纳米比亚', 114, b'1');
INSERT INTO `dict_country` VALUES (115, 'NL', '瑙鲁', 115, b'1');
INSERT INTO `dict_country` VALUES (116, 'NBE', '尼泊尔', 116, b'1');
INSERT INTO `dict_country` VALUES (117, 'HSADLS', '荷属安的列斯', 117, b'1');
INSERT INTO `dict_country` VALUES (118, 'HL', '荷兰', 118, b'1');
INSERT INTO `dict_country` VALUES (119, 'XXL', '新西兰', 119, b'1');
INSERT INTO `dict_country` VALUES (120, 'NJLG', '尼加拉瓜', 120, b'1');
INSERT INTO `dict_country` VALUES (121, 'NRE', '尼日尔', 121, b'1');
INSERT INTO `dict_country` VALUES (122, 'NRLY', '尼日利亚', 122, b'1');
INSERT INTO `dict_country` VALUES (123, 'CX', '朝鲜', 123, b'1');
INSERT INTO `dict_country` VALUES (124, 'NW', '挪威', 124, b'1');
INSERT INTO `dict_country` VALUES (125, 'AM', '阿曼', 125, b'1');
INSERT INTO `dict_country` VALUES (126, 'BJST', '巴基斯坦', 126, b'1');
INSERT INTO `dict_country` VALUES (127, 'BNM', '巴拿马', 127, b'1');
INSERT INTO `dict_country` VALUES (128, 'BBYXJNY', '巴布亚新几内亚', 128, b'1');
INSERT INTO `dict_country` VALUES (129, 'BLG', '巴拉圭', 129, b'1');
INSERT INTO `dict_country` VALUES (130, 'ML', '秘鲁', 130, b'1');
INSERT INTO `dict_country` VALUES (131, 'FLB', '菲律宾', 131, b'1');
INSERT INTO `dict_country` VALUES (132, 'BL', '波兰', 132, b'1');
INSERT INTO `dict_country` VALUES (133, 'FSBLNXY', '法属玻利尼西亚', 133, b'1');
INSERT INTO `dict_country` VALUES (134, 'PTY', '葡萄牙', 134, b'1');
INSERT INTO `dict_country` VALUES (135, 'BDLG', '波多黎各', 135, b'1');
INSERT INTO `dict_country` VALUES (136, 'KTE', '卡塔尔', 136, b'1');
INSERT INTO `dict_country` VALUES (137, 'LNW', '留尼旺', 137, b'1');
INSERT INTO `dict_country` VALUES (138, 'LMNY', '罗马尼亚', 138, b'1');
INSERT INTO `dict_country` VALUES (139, 'ELS', '俄罗斯', 139, b'1');
INSERT INTO `dict_country` VALUES (140, 'SWSTD', '圣文森特岛', 140, b'1');
INSERT INTO `dict_country` VALUES (141, 'DSMYM', '东萨摩亚（美）', 141, b'1');
INSERT INTO `dict_country` VALUES (142, 'XSMY', '西萨摩亚', 142, b'1');
INSERT INTO `dict_country` VALUES (143, 'SMN', '圣马力诺', 143, b'1');
INSERT INTO `dict_country` VALUES (144, 'SDMHPLXB', '圣多美和普林西比', 144, b'1');
INSERT INTO `dict_country` VALUES (145, 'STALB', '沙特阿拉伯', 145, b'1');
INSERT INTO `dict_country` VALUES (146, 'SNJE', '塞内加尔', 146, b'1');
INSERT INTO `dict_country` VALUES (147, 'SSE', '塞舌尔', 147, b'1');
INSERT INTO `dict_country` VALUES (148, 'SLLA', '塞拉利昂', 148, b'1');
INSERT INTO `dict_country` VALUES (149, 'XJP', '新加坡', 149, b'1');
INSERT INTO `dict_country` VALUES (150, 'SLFK', '斯洛伐克', 150, b'1');
INSERT INTO `dict_country` VALUES (151, 'SLWNY', '斯洛文尼亚', 151, b'1');
INSERT INTO `dict_country` VALUES (152, 'SLMQD', '所罗门群岛', 152, b'1');
INSERT INTO `dict_country` VALUES (153, 'SML', '索马里', 153, b'1');
INSERT INTO `dict_country` VALUES (154, 'NF', '南非', 154, b'1');
INSERT INTO `dict_country` VALUES (155, 'XBY', '西班牙', 155, b'1');
INSERT INTO `dict_country` VALUES (156, 'SLLK', '斯里兰卡', 156, b'1');
INSERT INTO `dict_country` VALUES (157, 'SLXY', '圣卢西亚', 157, b'1');
INSERT INTO `dict_country` VALUES (158, 'SD', '苏丹', 158, b'1');
INSERT INTO `dict_country` VALUES (159, 'NSD', '南苏丹', 159, b'1');
INSERT INTO `dict_country` VALUES (160, 'SLN', '苏里南', 160, b'1');
INSERT INTO `dict_country` VALUES (161, 'SWSL', '斯威士兰', 161, b'1');
INSERT INTO `dict_country` VALUES (162, 'RD', '瑞典', 162, b'1');
INSERT INTO `dict_country` VALUES (163, 'RS', '瑞士', 163, b'1');
INSERT INTO `dict_country` VALUES (164, 'XLY', '叙利亚', 164, b'1');
INSERT INTO `dict_country` VALUES (165, 'TJKST', '塔吉克斯坦', 165, b'1');
INSERT INTO `dict_country` VALUES (166, 'TSNY', '坦桑尼亚', 166, b'1');
INSERT INTO `dict_country` VALUES (167, 'TG', '泰国', 167, b'1');
INSERT INTO `dict_country` VALUES (168, 'DG', '多哥', 168, b'1');
INSERT INTO `dict_country` VALUES (169, 'TJ', '汤加', 169, b'1');
INSERT INTO `dict_country` VALUES (170, 'TLNDHDBG', '特立尼达和多巴哥', 170, b'1');
INSERT INTO `dict_country` VALUES (171, 'TNS', '突尼斯', 171, b'1');
INSERT INTO `dict_country` VALUES (172, 'TEQ', '土耳其', 172, b'1');
INSERT INTO `dict_country` VALUES (173, 'TKMST', '土库曼斯坦', 173, b'1');
INSERT INTO `dict_country` VALUES (174, 'WGD', '乌干达', 174, b'1');
INSERT INTO `dict_country` VALUES (175, 'WKL', '乌克兰', 175, b'1');
INSERT INTO `dict_country` VALUES (176, 'ALBLHQCG', '阿拉伯联合酋长国', 176, b'1');
INSERT INTO `dict_country` VALUES (177, 'YG', '英国', 177, b'1');
INSERT INTO `dict_country` VALUES (178, 'MG', '美国', 178, b'1');
INSERT INTO `dict_country` VALUES (179, 'WLG', '乌拉圭', 179, b'1');
INSERT INTO `dict_country` VALUES (180, 'WZBKST', '乌兹别克斯坦', 180, b'1');
INSERT INTO `dict_country` VALUES (181, 'WNRL', '委内瑞拉', 181, b'1');
INSERT INTO `dict_country` VALUES (182, 'YN', '越南', 182, b'1');
INSERT INTO `dict_country` VALUES (183, 'YM', '也门', 183, b'1');
INSERT INTO `dict_country` VALUES (184, 'NSLF', '南斯拉夫', 184, b'1');
INSERT INTO `dict_country` VALUES (185, 'JBBW', '津巴布韦', 185, b'1');
INSERT INTO `dict_country` VALUES (186, 'GGMZGHG', '刚果民主共和国', 186, b'1');
INSERT INTO `dict_country` VALUES (187, 'ZBY', '赞比亚', 187, b'1');

-- ----------------------------
-- Table structure for dict_evaluate_level
-- ----------------------------
DROP TABLE IF EXISTS `dict_evaluate_level`;
CREATE TABLE `dict_evaluate_level`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '符号',
  `label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '显示文本',
  `sort` int NULL DEFAULT NULL COMMENT '排序',
  `enable` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否启用',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '职位' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dict_evaluate_level
-- ----------------------------

-- ----------------------------
-- Table structure for dict_nation
-- ----------------------------
DROP TABLE IF EXISTS `dict_nation`;
CREATE TABLE `dict_nation`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '符号',
  `label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '显示文本',
  `sort` int NULL DEFAULT NULL COMMENT '排序',
  `enable` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否启用',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '职位' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dict_nation
-- ----------------------------
INSERT INTO `dict_nation` VALUES (1, 'HA', '汉族', 1, b'1');
INSERT INTO `dict_nation` VALUES (2, 'MG', '蒙古族', 2, b'1');
INSERT INTO `dict_nation` VALUES (3, 'HU', '回族', 3, b'1');
INSERT INTO `dict_nation` VALUES (4, 'ZA', '藏族', 4, b'1');
INSERT INTO `dict_nation` VALUES (5, 'UG', '维吾尔族', 5, b'1');
INSERT INTO `dict_nation` VALUES (6, 'MH', '苗族', 6, b'1');
INSERT INTO `dict_nation` VALUES (7, 'YI', '彝族', 7, b'1');
INSERT INTO `dict_nation` VALUES (8, 'ZH', '壮族', 8, b'1');
INSERT INTO `dict_nation` VALUES (9, 'BY', '布依族', 9, b'1');
INSERT INTO `dict_nation` VALUES (10, 'CS', '朝鲜族', 10, b'1');
INSERT INTO `dict_nation` VALUES (11, 'MA', '满族', 11, b'1');
INSERT INTO `dict_nation` VALUES (12, 'DO', '侗族', 12, b'1');
INSERT INTO `dict_nation` VALUES (13, 'YA', '瑶族', 13, b'1');
INSERT INTO `dict_nation` VALUES (14, 'BA', '白族', 14, b'1');
INSERT INTO `dict_nation` VALUES (15, 'TJ', '土家族', 15, b'1');
INSERT INTO `dict_nation` VALUES (16, 'HN', '哈尼族', 16, b'1');
INSERT INTO `dict_nation` VALUES (17, 'KZ', '哈萨克族', 17, b'1');
INSERT INTO `dict_nation` VALUES (18, 'DA', '傣族', 18, b'1');
INSERT INTO `dict_nation` VALUES (19, 'LI', '黎族', 19, b'1');
INSERT INTO `dict_nation` VALUES (20, 'LS', '傈僳族', 20, b'1');
INSERT INTO `dict_nation` VALUES (21, 'VA', '佤族', 21, b'1');
INSERT INTO `dict_nation` VALUES (22, 'SH', '畲族', 22, b'1');
INSERT INTO `dict_nation` VALUES (23, 'GS', '高山族', 23, b'1');
INSERT INTO `dict_nation` VALUES (24, 'LH', '拉祜族', 24, b'1');
INSERT INTO `dict_nation` VALUES (25, 'SU', '水族', 25, b'1');
INSERT INTO `dict_nation` VALUES (26, 'DX', '东乡族', 26, b'1');
INSERT INTO `dict_nation` VALUES (27, 'NX', '纳西族', 27, b'1');
INSERT INTO `dict_nation` VALUES (28, 'JP', '景颇族', 28, b'1');
INSERT INTO `dict_nation` VALUES (29, 'KG', '柯尔克孜族', 29, b'1');
INSERT INTO `dict_nation` VALUES (30, 'TU', '土族', 30, b'1');
INSERT INTO `dict_nation` VALUES (31, 'DU', '达斡尔族', 31, b'1');
INSERT INTO `dict_nation` VALUES (32, 'ML', '仫佬族', 32, b'1');
INSERT INTO `dict_nation` VALUES (33, 'QI', '羌族', 33, b'1');
INSERT INTO `dict_nation` VALUES (34, 'BL', '布朗族', 34, b'1');
INSERT INTO `dict_nation` VALUES (35, 'SL', '撒拉族', 35, b'1');
INSERT INTO `dict_nation` VALUES (36, 'MN', '毛难族', 36, b'1');
INSERT INTO `dict_nation` VALUES (37, 'GL', '仡佬族', 37, b'1');
INSERT INTO `dict_nation` VALUES (38, 'XB', '锡伯族', 38, b'1');
INSERT INTO `dict_nation` VALUES (39, 'AC', '阿昌族', 39, b'1');
INSERT INTO `dict_nation` VALUES (40, 'PM', '普米族', 40, b'1');
INSERT INTO `dict_nation` VALUES (41, 'TA', '塔吉克族', 41, b'1');
INSERT INTO `dict_nation` VALUES (42, 'NU', '怒族', 42, b'1');
INSERT INTO `dict_nation` VALUES (43, 'UZ', '乌孜别克族', 43, b'1');
INSERT INTO `dict_nation` VALUES (44, 'RS', '俄罗斯族', 44, b'1');
INSERT INTO `dict_nation` VALUES (45, 'EW', '鄂温克族', 45, b'1');
INSERT INTO `dict_nation` VALUES (46, 'DE', '德昂族', 46, b'1');
INSERT INTO `dict_nation` VALUES (47, 'BN', '保安族', 47, b'1');
INSERT INTO `dict_nation` VALUES (48, 'YG', '裕固族', 48, b'1');
INSERT INTO `dict_nation` VALUES (49, 'GI', '京族', 49, b'1');
INSERT INTO `dict_nation` VALUES (50, 'TT', '塔塔尔族', 50, b'1');
INSERT INTO `dict_nation` VALUES (51, 'DR', '独龙族', 51, b'1');
INSERT INTO `dict_nation` VALUES (52, 'OR', '鄂伦春族', 52, b'1');
INSERT INTO `dict_nation` VALUES (53, 'HZ', '赫哲族', 53, b'1');
INSERT INTO `dict_nation` VALUES (54, 'MB', '门巴族', 54, b'1');
INSERT INTO `dict_nation` VALUES (55, 'LB', '珞巴族', 55, b'1');
INSERT INTO `dict_nation` VALUES (56, 'JN', '基诺族', 56, b'1');

-- ----------------------------
-- Table structure for dict_recommend_level
-- ----------------------------
DROP TABLE IF EXISTS `dict_recommend_level`;
CREATE TABLE `dict_recommend_level`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '符号',
  `label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '显示文本',
  `sort` int NULL DEFAULT NULL COMMENT '排序',
  `enable` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否启用',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '职位' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dict_recommend_level
-- ----------------------------

-- ----------------------------
-- Table structure for dict_rewards_type
-- ----------------------------
DROP TABLE IF EXISTS `dict_rewards_type`;
CREATE TABLE `dict_rewards_type`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '符号',
  `label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '显示文本',
  `sort` int NULL DEFAULT NULL COMMENT '排序',
  `enable` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否启用',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '职位' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dict_rewards_type
-- ----------------------------

-- ----------------------------
-- Table structure for dict_secret_level
-- ----------------------------
DROP TABLE IF EXISTS `dict_secret_level`;
CREATE TABLE `dict_secret_level`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '符号',
  `label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '显示文本',
  `sort` int NULL DEFAULT NULL COMMENT '排序',
  `enable` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否启用',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '职位' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dict_secret_level
-- ----------------------------

-- ----------------------------
-- Table structure for image
-- ----------------------------
DROP TABLE IF EXISTS `image`;
CREATE TABLE `image`  (
  `id` int NOT NULL COMMENT '图片id',
  `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '图片url',
  `local_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '图片本地路径',
  `create_user_id` int NOT NULL COMMENT '创建者',
  `create_time` datetime(0) NOT NULL COMMENT '创建时间',
  `last_modify_user_id` int NULL DEFAULT NULL COMMENT '最后修改者',
  `last_modify_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间',
  `delete_user_id` int NULL DEFAULT NULL COMMENT '删除者',
  `delete_time` date NULL DEFAULT NULL COMMENT '删除时间',
  `enable` bit(1) NULL DEFAULT NULL COMMENT '是否启用',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of image
-- ----------------------------

-- ----------------------------
-- Table structure for log_login_log
-- ----------------------------
DROP TABLE IF EXISTS `log_login_log`;
CREATE TABLE `log_login_log`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `user_id` int NOT NULL COMMENT '登录用户ID',
  `principal` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '标识（用户名/邮箱/手机号）',
  `type` enum('ACCOUNT','MOBILE','WECHAT') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '登录方式',
  `ip_address` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'IP地址',
  `login_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '登录时间',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `user_id`(`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '登录日志' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of log_login_log
-- ----------------------------

-- ----------------------------
-- Table structure for major_category
-- ----------------------------
DROP TABLE IF EXISTS `major_category`;
CREATE TABLE `major_category`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '设备分类ID',
  `code` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备分类编号',
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '设备分类名称',
  `level` int NOT NULL COMMENT '层级',
  `parent_id` int NULL DEFAULT NULL COMMENT '父分类ID',
  `is_parent_equipment` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否作为父设备',
  `enable` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否启用',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注信息',
  `create_user_id` int NULL DEFAULT NULL COMMENT '创建者用户ID',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `last_modify_user_id` int NULL DEFAULT NULL COMMENT '更新者用户ID',
  `last_modify_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `delete_user_id` int NULL DEFAULT NULL COMMENT '删除者用户ID',
  `delete_time` datetime(0) NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uni_category_name`(`name`, `parent_id`) USING BTREE,
  UNIQUE INDEX `uni_category_code`(`code`, `parent_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '设备分类' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of major_category
-- ----------------------------

-- ----------------------------
-- Table structure for project
-- ----------------------------
DROP TABLE IF EXISTS `project`;
CREATE TABLE `project`  (
  `Id` int NOT NULL COMMENT '项目ID',
  `chn_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '项目中文名',
  `eng_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目英文名',
  `response_person_id` int NOT NULL COMMENT '主要完成人',
  `unit_id` int NOT NULL COMMENT '主要完成单位',
  `unit_contribution` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '完成单位贡献情况阐述',
  `award_type` int NULL DEFAULT NULL COMMENT '奖励类别\r\nAPP_TECH：应用技术成果  \r\nBASIC_TECH：基础技术成果  \r\nEXTENSION：推广成果  \r\nTECH_BASIC：技术基础成果  \r\nSOFT_TECH：软科学成果  \r\nOTHER：其他',
  `recomend_unit_id` int NULL DEFAULT NULL COMMENT '推荐单位',
  `recomend_level` int NULL DEFAULT NULL COMMENT '推荐等级',
  `recommend_date` date NULL DEFAULT NULL COMMENT '推荐日期',
  `secret_level` int NULL DEFAULT NULL COMMENT '密级',
  `department_id` int NULL DEFAULT NULL COMMENT '主管部门',
  `achieve_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '成果登记号',
  `theme` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '主题词',
  `task_source` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '任务来源 A、国家计划    B、省部级计划、集团公司计划   C、计划外\r\n',
  `major_category_id` int NULL DEFAULT NULL COMMENT '专业分类',
  `plan` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '计划名称',
  `plan_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '计划编号',
  `project_start_time` date NULL DEFAULT NULL COMMENT '项目开始日期',
  `project_end_time` date NULL DEFAULT NULL COMMENT '项目终止日期',
  `app_field` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '应用领域  A、民用      B、军民通用\r\n',
  `app_date` date NULL DEFAULT NULL COMMENT '应用日期',
  `evaluate_org_id` int NULL DEFAULT NULL COMMENT '成果评价机构',
  `evaluate_level` int NULL DEFAULT NULL COMMENT '评价水平',
  `evaluate_date` date NULL DEFAULT NULL COMMENT '评价日期',
  `invention_patent` int NULL DEFAULT NULL COMMENT '授权发明专利',
  `intellectual_property` int NULL DEFAULT NULL COMMENT '授权的其他知识产权',
  `project_info` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '项目简介',
  `tech_innovation` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '技术创新',
  `tech_limitation` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '技术局限性',
  `third_evaluation` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '第三方评价描述',
  `application_summary` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '应用推广情况概述',
  `direct_benifit` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '直接经济效益概述',
  `indirect_benifit` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '间接经济效益概述',
  `social_benifit` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '社会效益概述',
  `status` int NOT NULL DEFAULT -1 COMMENT '项目状态 {0：保存；1：提交；2：:已分配专家；3：专家评审通过；4：已通过；6：专家评审未通过；7：打回修改；8：已拒绝；-1：无效项目',
  `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '-1' COMMENT '项目备注',
  `create_user_id` int NOT NULL COMMENT '创建者',
  `create_time` datetime(0) NOT NULL COMMENT '创建时间',
  `last_modify_user_id` int NULL DEFAULT NULL COMMENT '最后修改者',
  `last_modify_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间',
  `delete_user_id` int NULL DEFAULT NULL COMMENT '删除者',
  `delete_time` date NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`Id`) USING BTREE,
  UNIQUE INDEX `pk_project_id`(`Id`) USING BTREE,
  INDEX `idx_project_unit_id`(`unit_id`) USING BTREE,
  INDEX `idx_project_award_type`(`award_type`) USING BTREE,
  INDEX `idx_project_recomend_unit_id`(`recomend_unit_id`) USING BTREE,
  INDEX `idx_project_secret_level`(`secret_level`) USING BTREE,
  INDEX `idx_project_app_field`(`app_field`) USING BTREE,
  INDEX `idx_project_evaluate_org_id`(`evaluate_org_id`) USING BTREE,
  INDEX `idx_project_evaluate_level`(`evaluate_level`) USING BTREE,
  INDEX `idx_project_status`(`status`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of project
-- ----------------------------

-- ----------------------------
-- Table structure for project_attach
-- ----------------------------
DROP TABLE IF EXISTS `project_attach`;
CREATE TABLE `project_attach`  (
  `id` int NOT NULL,
  `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `path` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `ranking` int NULL DEFAULT NULL COMMENT '文件顺序',
  `type` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件分类',
  `create_user_id` int NOT NULL COMMENT '创建者',
  `create_time` datetime(0) NOT NULL COMMENT '创建时间',
  `last_modify_user_id` int NULL DEFAULT NULL COMMENT '最后修改者',
  `last_modify_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间',
  `delete_user_id` int NULL DEFAULT NULL COMMENT '删除者',
  `delete_time` date NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of project_attach
-- ----------------------------

-- ----------------------------
-- Table structure for project_category
-- ----------------------------
DROP TABLE IF EXISTS `project_category`;
CREATE TABLE `project_category`  (
  `id` int NOT NULL,
  `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of project_category
-- ----------------------------

-- ----------------------------
-- Table structure for project_collect
-- ----------------------------
DROP TABLE IF EXISTS `project_collect`;
CREATE TABLE `project_collect`  (
  `id` int NOT NULL,
  `collect_year` int NOT NULL,
  `declare_begin_date` date NULL DEFAULT NULL COMMENT '项目申报开始日期',
  `declare_end_date` date NULL DEFAULT NULL COMMENT '项目申报截止日期',
  `status` int NOT NULL COMMENT '状态{0：保存；1：提交；-1：无效征集}',
  `review_end_date` date NULL DEFAULT NULL COMMENT '项目评审截止日期',
  `create_user_id` int NOT NULL COMMENT '创建者',
  `create_time` datetime(0) NOT NULL COMMENT '创建时间',
  `last_modify_user_id` int NULL DEFAULT NULL COMMENT '最后修改者',
  `last_modify_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间',
  `delete_user_id` int NULL DEFAULT NULL COMMENT '删除者',
  `delete_time` date NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of project_collect
-- ----------------------------

-- ----------------------------
-- Table structure for project_honor
-- ----------------------------
DROP TABLE IF EXISTS `project_honor`;
CREATE TABLE `project_honor`  (
  `Id` int NOT NULL,
  `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '知识产权（标准）具体名称',
  `honor_date` date NULL DEFAULT NULL COMMENT '授权（标准发布）日期',
  `level` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '知识产权（标准）类别',
  `country` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '国家（地区）\r\n',
  `code` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '授权号（标准编号）',
  `certificate_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '证书编号',
  `obligee` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '权利人（标准起草单位）',
  `author` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发明人（标准起草人）',
  `projec_id` int NOT NULL COMMENT '项目id',
  `status` int NULL DEFAULT NULL COMMENT '发明专利（标准）有效状态',
  `enable` bit(1) NOT NULL COMMENT '启用与否',
  `create_user_id` int NOT NULL COMMENT '创建者',
  `create_time` datetime(0) NOT NULL COMMENT '创建时间',
  `last_modify_user_id` int NULL DEFAULT NULL COMMENT '最后修改者',
  `last_modify_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间',
  `delete_user_id` int NULL DEFAULT NULL COMMENT '删除者',
  `delete_time` date NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`Id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of project_honor
-- ----------------------------

-- ----------------------------
-- Table structure for project_standards
-- ----------------------------
DROP TABLE IF EXISTS `project_standards`;
CREATE TABLE `project_standards`  (
  `Id` int NOT NULL,
  `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '奖励名称',
  `honor_date` date NULL DEFAULT NULL COMMENT '获奖日期',
  `level` varchar(5) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '奖励等级',
  `organization` int NULL DEFAULT NULL COMMENT '授奖部门',
  `projec_id` int NOT NULL COMMENT '项目id',
  `create_user_id` int NOT NULL COMMENT '创建者',
  `create_time` datetime(0) NOT NULL COMMENT '创建时间',
  `last_modify_user_id` int NULL DEFAULT NULL COMMENT '最后修改者',
  `last_modify_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间',
  `delete_user_id` int NULL DEFAULT NULL COMMENT '删除者',
  `delete_time` date NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`Id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of project_standards
-- ----------------------------

-- ----------------------------
-- Table structure for project_unit
-- ----------------------------
DROP TABLE IF EXISTS `project_unit`;
CREATE TABLE `project_unit`  (
  `project_id` int NOT NULL COMMENT '项目ID',
  `unit_id` int NOT NULL COMMENT '主要完成单位ID',
  `contribution` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '对项目的贡献概述',
  `honor` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '曾获奖励概述',
  `ranking` int NULL DEFAULT NULL COMMENT '排名',
  PRIMARY KEY (`project_id`, `unit_id`) USING BTREE,
  INDEX `fk_user_role_role_id`(`unit_id`) USING BTREE,
  CONSTRAINT `project_unit_ibfk_1` FOREIGN KEY (`unit_id`) REFERENCES `sys_role` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
  CONSTRAINT `project_unit_ibfk_2` FOREIGN KEY (`project_id`) REFERENCES `sys_user` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户角色' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of project_unit
-- ----------------------------

-- ----------------------------
-- Table structure for project_user
-- ----------------------------
DROP TABLE IF EXISTS `project_user`;
CREATE TABLE `project_user`  (
  `project_id` int NOT NULL COMMENT '项目ID',
  `user_id` int NOT NULL COMMENT '主要完成人ID',
  `project_start` date NULL DEFAULT NULL COMMENT '参加项目时间',
  `project_end` date NULL DEFAULT NULL COMMENT '离开项目时间',
  `contribution` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '对项目的贡献概述',
  `honor` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '曾获奖励概述',
  `ranking` int NULL DEFAULT NULL COMMENT '排名',
  PRIMARY KEY (`project_id`, `user_id`) USING BTREE,
  INDEX `fk_user_role_role_id`(`user_id`) USING BTREE,
  CONSTRAINT `project_user_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `sys_role` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
  CONSTRAINT `project_user_ibfk_2` FOREIGN KEY (`project_id`) REFERENCES `sys_user` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户角色' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of project_user
-- ----------------------------

-- ----------------------------
-- Table structure for review_expert
-- ----------------------------
DROP TABLE IF EXISTS `review_expert`;
CREATE TABLE `review_expert`  (
  `id` int NOT NULL,
  `progressive` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '进步作用分',
  `benefit` int NOT NULL DEFAULT 0 COMMENT '社会与经济效益分',
  `completeness` bit(1) NOT NULL DEFAULT b'0' COMMENT '成熟完备性',
  `technology` int NOT NULL DEFAULT 0 COMMENT '科技水平分',
  `difficulty` bit(1) NOT NULL DEFAULT b'0' COMMENT '技术难度分',
  `innovation` int NOT NULL DEFAULT 0 COMMENT '创新程度分',
  `score` int NOT NULL COMMENT '定性分数',
  `remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  `review_date` date NULL DEFAULT NULL COMMENT '评审日期',
  `expert_id` int NOT NULL COMMENT '专家用户id',
  `project_id` int NOT NULL DEFAULT 0 COMMENT '项目id',
  `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '0:保存  1：提交',
  `enable` bit(1) NOT NULL COMMENT '启用与否（0：停用；1：启用）',
  `create_user_id` int NOT NULL COMMENT '创建者',
  `create_time` datetime(0) NOT NULL COMMENT '创建时间',
  `last_modify_user_id` int NULL DEFAULT NULL COMMENT '最后修改者',
  `last_modify_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间',
  `delete_user_id` int NULL DEFAULT NULL COMMENT '删除者',
  `delete_time` date NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of review_expert
-- ----------------------------

-- ----------------------------
-- Table structure for review_final
-- ----------------------------
DROP TABLE IF EXISTS `review_final`;
CREATE TABLE `review_final`  (
  `id` int NOT NULL,
  `comment` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '评审意见',
  `review_time` datetime(0) NOT NULL COMMENT '评审日期',
  `status` bit(1) NOT NULL COMMENT '0：保存；1：通过；-1：拒绝',
  `project_id` int NULL DEFAULT NULL COMMENT '项目id',
  `enable` bit(1) NOT NULL COMMENT '启用与否（0：停用；1：启用）',
  `create_user_id` int NOT NULL COMMENT '创建者',
  `create_time` datetime(0) NOT NULL COMMENT '创建时间',
  `last_modify_user_id` int NULL DEFAULT NULL COMMENT '最后修改者',
  `last_modify_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间',
  `delete_user_id` int NULL DEFAULT NULL COMMENT '删除者',
  `delete_time` date NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of review_final
-- ----------------------------

-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '单位ID',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '单位名称',
  `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '单位类型',
  `code` char(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '编码 (公司三位、非公司四位)',
  `director_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '负责人姓名',
  `parent_id` int NULL DEFAULT NULL COMMENT '上级单位',
  `level` int NOT NULL DEFAULT 1 COMMENT '级别',
  `enable` bit(1) NULL DEFAULT NULL COMMENT '是否启用',
  `delete_time` datetime(0) NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uni_unit_name`(`name`) USING BTREE,
  UNIQUE INDEX `uni_unit_code`(`code`) USING BTREE,
  INDEX `dept_parent_id`(`parent_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1189 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '单位' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_dept
-- ----------------------------

-- ----------------------------
-- Table structure for sys_resource
-- ----------------------------
DROP TABLE IF EXISTS `sys_resource`;
CREATE TABLE `sys_resource`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '资源ID',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '资源名称',
  `label` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '显示文本',
  `method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '请求方法',
  `permit_all` bit(1) NOT NULL DEFAULT b'0' COMMENT '允许所有访问',
  `url` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '路径',
  `sort` int NOT NULL DEFAULT 0 COMMENT '排序',
  `parent_id` int NULL DEFAULT NULL COMMENT '上级资源ID',
  `enable` bit(1) NOT NULL COMMENT '启用与否',
  `create_user_id` int NOT NULL COMMENT '创建者',
  `create_time` datetime(0) NOT NULL COMMENT '创建时间',
  `last_modify_user_id` int NULL DEFAULT NULL COMMENT '最后修改者',
  `last_modify_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间',
  `delete_user_id` int NULL DEFAULT NULL COMMENT '删除者',
  `delete_time` date NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `idx_resource_name`(`name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_resource
-- ----------------------------

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '显示文本',
  `label` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '角色名称',
  `enable` bit(1) NOT NULL COMMENT '启用与否',
  `create_user_id` int NOT NULL COMMENT '创建者',
  `create_time` datetime(0) NOT NULL COMMENT '创建时间',
  `last_modify_user_id` int NULL DEFAULT NULL COMMENT '最后修改者',
  `last_modify_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间',
  `delete_user_id` int NULL DEFAULT NULL COMMENT '删除者',
  `delete_time` date NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_role_label`(`label`) USING BTREE,
  UNIQUE INDEX `uk_role_name`(`name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '角色' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES (1, 'SUPER_ADMIN', '超级管理员', b'0', 0, '0000-00-00 00:00:00', NULL, NULL, NULL, NULL);
INSERT INTO `sys_role` VALUES (2, 'ADMIN', '管理员', b'0', 0, '0000-00-00 00:00:00', NULL, NULL, NULL, NULL);
INSERT INTO `sys_role` VALUES (3, 'EXPERT', '专家', b'0', 0, '0000-00-00 00:00:00', NULL, NULL, NULL, NULL);
INSERT INTO `sys_role` VALUES (4, 'NORMAL', '一般用户', b'0', 0, '0000-00-00 00:00:00', NULL, NULL, NULL, NULL);

-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu`  (
  `role_id` int NOT NULL COMMENT '角色ID',
  `menu_id` int NOT NULL COMMENT '菜单ID',
  PRIMARY KEY (`role_id`, `menu_id`) USING BTREE,
  INDEX `fk_role_menu_menu_id`(`menu_id`) USING BTREE,
  CONSTRAINT `sys_role_menu_ibfk_1` FOREIGN KEY (`menu_id`) REFERENCES `sys_menu` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
  CONSTRAINT `sys_role_menu_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色与菜单关联关系表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role_menu
-- ----------------------------

-- ----------------------------
-- Table structure for sys_unit
-- ----------------------------
DROP TABLE IF EXISTS `sys_unit`;
CREATE TABLE `sys_unit`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '单位ID',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '单位名称',
  `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '单位性质',
  `code` char(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '编码 (公司三位、非公司四位)',
  `legal_person` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '单位法人',
  `location` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '单位所在地',
  `fax` varchar(13) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '传真',
  `office_phone` varchar(13) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '单位电话',
  `mobile_phone` varchar(13) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '移动电话',
  `email` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '电子邮箱',
  `stamp` int NULL DEFAULT NULL COMMENT '单位盖章图片id',
  `sign` int NULL DEFAULT NULL COMMENT '法人签字图片id',
  `enable` bit(1) NULL DEFAULT NULL COMMENT '是否启用',
  `create_user_id` int NOT NULL COMMENT '创建者',
  `create_time` datetime(0) NOT NULL COMMENT '创建时间',
  `last_modify_user_id` int NULL DEFAULT NULL COMMENT '最后修改者',
  `last_modify_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间',
  `delete_user_id` int NULL DEFAULT NULL COMMENT '删除者',
  `delete_time` date NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uni_unit_name`(`name`) USING BTREE,
  UNIQUE INDEX `uni_unit_code`(`code`) USING BTREE,
  INDEX `dept_parent_id`(`stamp`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1189 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '单位' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_unit
-- ----------------------------

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user`  (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  `username` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '用户名',
  `password` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '密码',
  `email` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '电子邮箱',
  `mobile_phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '手机号',
  `unit_id` int NULL DEFAULT NULL COMMENT '工作单位ID',
  `dept_id` int NULL DEFAULT NULL COMMENT '二级单位（部门）ID',
  `position` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '行政职务',
  `office_phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '办公电话',
  `fullname` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '真实姓名',
  `address` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '通讯地址',
  `postal` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '邮编',
  `sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '性别',
  `country` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '国籍',
  `nation` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '民族',
  `party` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '党派',
  `birth_date` date NULL DEFAULT NULL COMMENT '出生日期',
  `birth_area` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '出生地',
  `ID_card` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '身份证号',
  `title` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '技术职称',
  `degree` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '最高学位{0：博士；1：硕士；2:学士；3：专科；4：其他}',
  `education` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '最高学历{0：研究生；1：本科；2：专科；3：其他}',
  `college` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '毕业学校',
  `major` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '所学专业',
  `graduate_date` date NULL DEFAULT NULL COMMENT '毕业日期',
  `is_abroad` bit(1) NULL DEFAULT NULL COMMENT '是否归国人员',
  `return_date` date NULL DEFAULT NULL COMMENT '归国日期',
  `sign` int NULL DEFAULT NULL COMMENT '个人签名图片id',
  `create_user_id` int NOT NULL COMMENT '创建者',
  `create_time` datetime(0) NOT NULL COMMENT '创建时间',
  `last_modify_user_id` int NULL DEFAULT NULL COMMENT '最后修改者',
  `last_modify_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最后修改时间',
  `delete_user_id` int NULL DEFAULT NULL COMMENT '删除者',
  `delete_time` date NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uni_sys_user_username`(`username`) USING BTREE COMMENT '用户名唯一',
  UNIQUE INDEX `uni_user_phone_number`(`mobile_phone`) USING BTREE,
  INDEX `user_dept_id`(`country`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (1, 'super_admin', '$2a$10$8vZO7AyWImKecw.OFBjsyOX/FWOWHI1dx6rkyce26TtJpRrmuEuI6', 'a', '1', NULL, NULL, '', NULL, '超级管理员', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, '2022-02-10 14:09:40', NULL, NULL, NULL, NULL);

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role`  (
  `user_id` int NOT NULL COMMENT '用户ID',
  `role_id` int NOT NULL COMMENT '角色ID',
  PRIMARY KEY (`user_id`, `role_id`) USING BTREE,
  INDEX `fk_user_role_role_id`(`role_id`) USING BTREE,
  CONSTRAINT `sys_user_role_ibfk_1` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,
  CONSTRAINT `sys_user_role_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户角色' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_user_role
-- ----------------------------

SET FOREIGN_KEY_CHECKS = 1;
