3pigxx_codegen.sql 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. `file_path` varchar(255) NOT NULL,
  10. `file_content` longtext,
  11. PRIMARY KEY (`file_path`)
  12. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  13. -- ----------------------------
  14. -- Table structure for gen_datasource_conf
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `gen_datasource_conf`;
  17. CREATE TABLE `gen_datasource_conf` (
  18. `id` bigint NOT NULL COMMENT '主键',
  19. `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '别名',
  20. `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'jdbcurl',
  21. `username` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '用户名',
  22. `password` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '密码',
  23. `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  24. `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新',
  25. `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标记',
  26. `tenant_id` bigint DEFAULT NULL COMMENT '租户ID',
  27. `ds_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '数据库类型',
  28. `conf_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '配置类型',
  29. `ds_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '数据库名称',
  30. `instance` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '实例',
  31. `port` int DEFAULT NULL COMMENT '端口',
  32. `host` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '主机',
  33. PRIMARY KEY (`id`) USING BTREE
  34. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='数据源表';
  35. -- ----------------------------
  36. -- Table structure for gen_form_conf
  37. -- ----------------------------
  38. DROP TABLE IF EXISTS `gen_form_conf`;
  39. CREATE TABLE `gen_form_conf` (
  40. `id` bigint NOT NULL COMMENT 'ID',
  41. `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  42. `form_info` json NOT NULL COMMENT '表单信息',
  43. `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  44. `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  45. `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0',
  46. `tenant_id` bigint DEFAULT NULL COMMENT '所属租户',
  47. PRIMARY KEY (`id`) USING BTREE,
  48. KEY `table_name` (`table_name`) USING BTREE
  49. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='表单配置';
  50. SET FOREIGN_KEY_CHECKS = 1;