dye-schema.sql 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 192.168.100.94
  4. Source Server Type : MySQL
  5. Source Server Version : 50723
  6. Source Host : 192.168.100.94:9934
  7. Source Schema : calendar-center
  8. Target Server Type : MySQL
  9. Target Server Version : 50723
  10. File Encoding : 65001
  11. Date: 05/11/2021 17:34:44
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for dye_basic
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `dye_basic`;
  19. CREATE TABLE `dye_basic` (
  20. `id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  21. `type_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '染色类型编码,对应rwd_def_funcid的type字段',
  22. `type_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '染色类型名称',
  23. `season_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '季节编码',
  24. `season_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '季节名称',
  25. `create_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建时间',
  26. `update_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新时间',
  27. `update_user_id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '最后创建人ID',
  28. `is_delete` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '是否删除(0:否 1:是)',
  29. PRIMARY KEY (`id`) USING BTREE
  30. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '染色基础表' ROW_FORMAT = Dynamic;
  31. SET FOREIGN_KEY_CHECKS = 1;
  32. /*
  33. Navicat Premium Data Transfer
  34. Source Server : 192.168.100.94
  35. Source Server Type : MySQL
  36. Source Server Version : 50723
  37. Source Host : 192.168.100.94:9934
  38. Source Schema : calendar-center
  39. Target Server Type : MySQL
  40. Target Server Version : 50723
  41. File Encoding : 65001
  42. Date: 05/11/2021 17:34:50
  43. */
  44. SET NAMES utf8mb4;
  45. SET FOREIGN_KEY_CHECKS = 0;
  46. -- ----------------------------
  47. -- Table structure for dye_rule_default
  48. -- ----------------------------
  49. DROP TABLE IF EXISTS `dye_rule_default`;
  50. CREATE TABLE `dye_rule_default` (
  51. `id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键',
  52. `basic_id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '染色基础表ID',
  53. `upper_limit` int(50) NOT NULL COMMENT '上限',
  54. `upper_symbol` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '上限符号',
  55. `lower_limit` int(50) NOT NULL COMMENT '下限',
  56. `lower_symbol` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '下限符号',
  57. `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称',
  58. `color_value` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '色值',
  59. `create_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建时间',
  60. `update_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新时间',
  61. `update_user_id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '最后更新人ID',
  62. `is_delete` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '是否删除(0:否 1:是)',
  63. `order_num` int(10) NULL DEFAULT NULL COMMENT '排序',
  64. `num_symbol` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数值单位符号',
  65. PRIMARY KEY (`id`) USING BTREE,
  66. UNIQUE INDEX `id`(`id`) USING BTREE COMMENT '主键索引',
  67. INDEX `basic_id`(`basic_id`) USING BTREE COMMENT '外键索引',
  68. CONSTRAINT `fk_default` FOREIGN KEY (`basic_id`) REFERENCES `dye_basic` (`id`) ON DELETE RESTRICT ON UPDATE NO ACTION
  69. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '默认染色规则' ROW_FORMAT = Dynamic;
  70. SET FOREIGN_KEY_CHECKS = 1;
  71. /*
  72. Navicat Premium Data Transfer
  73. Source Server : 192.168.100.94
  74. Source Server Type : MySQL
  75. Source Server Version : 50723
  76. Source Host : 192.168.100.94:9934
  77. Source Schema : calendar-center
  78. Target Server Type : MySQL
  79. Target Server Version : 50723
  80. File Encoding : 65001
  81. Date: 05/11/2021 17:34:57
  82. */
  83. SET NAMES utf8mb4;
  84. SET FOREIGN_KEY_CHECKS = 0;
  85. -- ----------------------------
  86. -- Table structure for dye_rule_custom
  87. -- ----------------------------
  88. DROP TABLE IF EXISTS `dye_rule_custom`;
  89. CREATE TABLE `dye_rule_custom` (
  90. `id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  91. `basic_id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '基础表ID',
  92. `upper_limit` int(50) NOT NULL COMMENT '上限',
  93. `upper_symbol` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '上限符号',
  94. `lower_limit` int(50) NOT NULL COMMENT '下限',
  95. `lower_symbol` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '下限符号',
  96. `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称',
  97. `color_value` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '色值',
  98. `create_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建时间',
  99. `update_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改时间',
  100. `update_user_id` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '最后修改人ID',
  101. `is_delete` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '是否删除(0:否 1:是)',
  102. `order_num` int(10) NULL DEFAULT NULL COMMENT '排序',
  103. `num_symbol` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数值单位符号',
  104. `group_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集团编码',
  105. `project_id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目ID',
  106. PRIMARY KEY (`id`) USING BTREE,
  107. UNIQUE INDEX `id`(`id`) USING BTREE COMMENT '主键索引',
  108. INDEX `basic_id`(`basic_id`) USING BTREE COMMENT '外键索引',
  109. CONSTRAINT `fk_custom` FOREIGN KEY (`basic_id`) REFERENCES `dye_basic` (`id`) ON DELETE RESTRICT ON UPDATE NO ACTION
  110. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '染色规则自定义表' ROW_FORMAT = Dynamic;
  111. SET FOREIGN_KEY_CHECKS = 1;