Add executable business blueprint workflow
This commit is contained in:
@@ -7,6 +7,7 @@ drop table if exists front_project_file;
|
||||
drop table if exists front_project_generation;
|
||||
drop table if exists front_project_column;
|
||||
drop table if exists front_project_table;
|
||||
drop table if exists front_project_module;
|
||||
drop table if exists front_project;
|
||||
drop table if exists front_user;
|
||||
|
||||
@@ -41,6 +42,7 @@ create table front_project (
|
||||
industry_template varchar(50) default '' comment '行业模板',
|
||||
front_framework varchar(50) default 'Vue3 + Element Plus' comment '前台框架',
|
||||
back_framework varchar(50) default 'Spring Boot + MyBatis' comment '后端框架',
|
||||
frontend_enabled char(1) default '1' comment '是否生成前台前端(1是 0否)',
|
||||
generate_status char(1) default '0' comment '数据库生成状态(0未生成 1生成中 2已生成 3失败)',
|
||||
preview_status char(1) default '0' comment '预览状态(0未预览 1已预览 2失败)',
|
||||
app_blueprint longtext comment '应用蓝图草稿JSON',
|
||||
@@ -55,6 +57,22 @@ create table front_project (
|
||||
constraint fk_front_project_user foreign key (user_id) references front_user(user_id)
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台项目草稿表';
|
||||
|
||||
create table front_project_module (
|
||||
id bigint(20) not null auto_increment comment 'id',
|
||||
project_id bigint(20) not null comment '前台项目ID',
|
||||
module_id bigint(20) not null comment '功能模块ID',
|
||||
status char(1) default '0' comment '状态(0正常 1停用)',
|
||||
create_time datetime default null comment '创建时间',
|
||||
update_time datetime default null comment '更新时间',
|
||||
remark varchar(500) default null comment '备注',
|
||||
primary key (id),
|
||||
unique key uk_front_project_module (project_id, module_id),
|
||||
key idx_front_project_module_project_id (project_id),
|
||||
key idx_front_project_module_module_id (module_id),
|
||||
constraint fk_front_project_module_project foreign key (project_id) references front_project(project_id),
|
||||
constraint fk_front_project_module_module foreign key (module_id) references sys_module(module_id)
|
||||
) engine=innodb auto_increment=100 default charset=utf8mb4 comment='前台项目功能模块关系';
|
||||
|
||||
create table front_project_table (
|
||||
table_id bigint(20) not null auto_increment comment '表设计ID',
|
||||
project_id bigint(20) not null comment '项目ID',
|
||||
|
||||
Reference in New Issue
Block a user