3pigxx_codegen.sql 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. USE pigxx_boot_codegen;
  2. SET NAMES utf8mb4;
  3. SET FOREIGN_KEY_CHECKS = 0;
  4. -- ----------------------------
  5. -- Table structure for gen_api_file
  6. -- ----------------------------
  7. DROP TABLE IF EXISTS `gen_api_file`;
  8. CREATE TABLE `gen_api_file`
  9. (
  10. `file_path` varchar(255) NOT NULL,
  11. `file_content` longtext,
  12. PRIMARY KEY (`file_path`)
  13. ) ENGINE = InnoDB
  14. DEFAULT CHARSET = utf8mb4
  15. COLLATE = utf8mb4_general_ci;
  16. -- ----------------------------
  17. -- Records of gen_api_file
  18. -- ----------------------------
  19. BEGIN;
  20. COMMIT;
  21. -- ----------------------------
  22. -- Table structure for gen_datasource_conf
  23. -- ----------------------------
  24. DROP TABLE IF EXISTS `gen_datasource_conf`;
  25. CREATE TABLE `gen_datasource_conf`
  26. (
  27. `id` bigint(20) NOT NULL COMMENT '主键',
  28. `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '别名',
  29. `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'jdbcurl',
  30. `username` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '用户名',
  31. `password` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '密码',
  32. `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  33. `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新',
  34. `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标记',
  35. `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户ID',
  36. `ds_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '数据库类型',
  37. `conf_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '配置类型',
  38. `ds_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '数据库名称',
  39. `instance` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '实例',
  40. `port` int(11) DEFAULT NULL COMMENT '端口',
  41. `host` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '主机',
  42. PRIMARY KEY (`id`) USING BTREE
  43. ) ENGINE = InnoDB
  44. DEFAULT CHARSET = utf8mb4
  45. COLLATE = utf8mb4_general_ci COMMENT ='数据源表';
  46. -- ----------------------------
  47. -- Records of gen_datasource_conf
  48. -- ----------------------------
  49. BEGIN;
  50. COMMIT;
  51. -- ----------------------------
  52. -- Table structure for gen_form_conf
  53. -- ----------------------------
  54. DROP TABLE IF EXISTS `gen_form_conf`;
  55. CREATE TABLE `gen_form_conf`
  56. (
  57. `id` bigint(20) NOT NULL COMMENT 'ID',
  58. `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  59. `form_info` json NOT NULL COMMENT '表单信息',
  60. `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  61. `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  62. `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0',
  63. `tenant_id` bigint(20) DEFAULT NULL COMMENT '所属租户',
  64. PRIMARY KEY (`id`) USING BTREE,
  65. KEY `table_name` (`table_name`) USING BTREE
  66. ) ENGINE = InnoDB
  67. DEFAULT CHARSET = utf8mb4
  68. COLLATE = utf8mb4_general_ci COMMENT ='表单配置';
  69. -- ----------------------------
  70. -- Records of gen_form_conf
  71. -- ----------------------------
  72. BEGIN;
  73. COMMIT;
  74. SET FOREIGN_KEY_CHECKS = 1;