✅ 增加 codegen 模块的单测覆盖率
This commit is contained in:
@@ -170,3 +170,59 @@ CREATE TABLE IF NOT EXISTS "infra_data_source_config" (
|
||||
"deleted" bit NOT NULL DEFAULT FALSE,
|
||||
PRIMARY KEY ("id")
|
||||
) COMMENT '数据源配置表';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "infra_codegen_table" (
|
||||
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
|
||||
"data_source_config_id" bigint not null,
|
||||
"scene" tinyint not null DEFAULT 1,
|
||||
"table_name" varchar(200) NOT NULL,
|
||||
"table_comment" varchar(500) NOT NULL,
|
||||
"remark" varchar(500) NOT NULL,
|
||||
"module_name" varchar(30) NOT NULL,
|
||||
"business_name" varchar(30) NOT NULL,
|
||||
"class_name" varchar(100) NOT NULL,
|
||||
"class_comment" varchar(50) NOT NULL,
|
||||
"author" varchar(50) NOT NULL,
|
||||
"template_type" tinyint not null DEFAULT 1,
|
||||
"front_type" tinyint not null,
|
||||
"parent_menu_id" bigint not null,
|
||||
"master_table_id" bigint not null,
|
||||
"sub_join_column_id" bigint not null,
|
||||
"sub_join_many" bit not null,
|
||||
"tree_parent_column_id" bigint not null,
|
||||
"tree_name_column_id" bigint not null,
|
||||
"creator" varchar(64) DEFAULT '',
|
||||
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updater" varchar(64) DEFAULT '',
|
||||
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
"deleted" bit NOT NULL DEFAULT FALSE,
|
||||
PRIMARY KEY ("id")
|
||||
) COMMENT '代码生成表定义表';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "infra_codegen_column" (
|
||||
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
|
||||
"table_id" bigint not null,
|
||||
"column_name" varchar(200) NOT NULL,
|
||||
"data_type" varchar(100) NOT NULL,
|
||||
"column_comment" varchar(500) NOT NULL,
|
||||
"nullable" tinyint not null,
|
||||
"primary_key" tinyint not null,
|
||||
"auto_increment" varchar(5) not null,
|
||||
"ordinal_position" int not null,
|
||||
"java_type" varchar(32) NOT NULL,
|
||||
"java_field" varchar(64) NOT NULL,
|
||||
"dict_type" varchar(200) NOT NULL,
|
||||
"example" varchar(64) NOT NULL,
|
||||
"create_operation" bit not null,
|
||||
"update_operation" bit not null,
|
||||
"list_operation" bit not null,
|
||||
"list_operation_condition" varchar(32) not null,
|
||||
"list_operation_result" bit not null,
|
||||
"html_type" varchar(32) NOT NULL,
|
||||
"creator" varchar(64) DEFAULT '',
|
||||
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updater" varchar(64) DEFAULT '',
|
||||
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
"deleted" bit NOT NULL DEFAULT FALSE,
|
||||
PRIMARY KEY ("id")
|
||||
) COMMENT '代码生成表字段定义表';
|
Reference in New Issue
Block a user