2020-03-14 14:27:18 +08:00
|
|
|
DROP DATABASE IF EXISTS `pig_codegen`;
|
|
|
|
|
2022-06-07 14:18:55 +08:00
|
|
|
CREATE DATABASE `pig_codegen` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
|
2020-03-14 14:27:18 +08:00
|
|
|
|
2022-06-07 14:18:55 +08:00
|
|
|
SET NAMES utf8;
|
2020-03-14 14:27:18 +08:00
|
|
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
|
|
|
|
|
|
USE `pig_codegen`;
|
2021-12-31 16:03:08 +08:00
|
|
|
|
2020-03-14 14:27:18 +08:00
|
|
|
-- ----------------------------
|
|
|
|
-- Table structure for gen_datasource_conf
|
|
|
|
-- ----------------------------
|
|
|
|
DROP TABLE IF EXISTS `gen_datasource_conf`;
|
|
|
|
CREATE TABLE `gen_datasource_conf` (
|
2021-12-31 16:03:08 +08:00
|
|
|
`id` bigint NOT NULL,
|
2022-06-07 14:18:55 +08:00
|
|
|
`name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '数据源名称',
|
|
|
|
`url` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT 'jdbc-url',
|
|
|
|
`username` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '用户名',
|
|
|
|
`password` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '密码',
|
|
|
|
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '删除标记',
|
2021-08-09 22:24:13 +08:00
|
|
|
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
2022-06-07 14:18:55 +08:00
|
|
|
`create_by` varchar(64) COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建人',
|
2021-08-09 22:24:13 +08:00
|
|
|
`update_time` datetime DEFAULT NULL COMMENT '修改时间',
|
2022-06-07 14:18:55 +08:00
|
|
|
`update_by` varchar(64) COLLATE utf8_general_ci DEFAULT NULL COMMENT '更新人',
|
2021-08-09 22:24:13 +08:00
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
2022-06-07 14:18:55 +08:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci COMMENT='数据源表';
|
2021-08-09 22:24:13 +08:00
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- Records of gen_datasource_conf
|
|
|
|
-- ----------------------------
|
|
|
|
BEGIN;
|
|
|
|
COMMIT;
|
2020-03-14 14:27:18 +08:00
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- Table structure for gen_form_conf
|
|
|
|
-- ----------------------------
|
|
|
|
DROP TABLE IF EXISTS `gen_form_conf`;
|
|
|
|
CREATE TABLE `gen_form_conf` (
|
2021-12-31 16:03:08 +08:00
|
|
|
`id` bigint NOT NULL,
|
2022-06-07 14:18:55 +08:00
|
|
|
`table_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '表名',
|
2021-08-09 22:24:13 +08:00
|
|
|
`form_info` json NOT NULL COMMENT '表单信息',
|
2022-06-07 14:18:55 +08:00
|
|
|
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '删除标记',
|
2021-08-09 22:24:13 +08:00
|
|
|
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
2022-06-07 14:18:55 +08:00
|
|
|
`create_by` varchar(64) COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建人',
|
2021-08-09 22:24:13 +08:00
|
|
|
`update_time` datetime DEFAULT NULL COMMENT '修改时间',
|
2022-06-07 14:18:55 +08:00
|
|
|
`update_by` varchar(64) COLLATE utf8_general_ci DEFAULT NULL COMMENT '更新人',
|
2021-08-09 22:24:13 +08:00
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `table_name` (`table_name`)
|
2022-06-07 14:18:55 +08:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci COMMENT='表单配置';
|
2021-08-09 22:24:13 +08:00
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- Records of gen_form_conf
|
|
|
|
-- ----------------------------
|
|
|
|
BEGIN;
|
|
|
|
COMMIT;
|
2020-03-14 14:27:18 +08:00
|
|
|
|
2021-11-10 16:43:33 +08:00
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|