🐛 【代码生成】自动创建表的没有关联数据源

This commit is contained in:
冷冷 committed 2024-05-15 12:59:31 +08:00
1 parent be5104bcb0
commit 1de4cbf828
1 file changed
+59 -53
@@ -38,67 +38,73 @@ import java.time.LocalDateTime;
@Schema(description = "自动创建表管理")
public class GenCreateTable extends Model<GenCreateTable> {
private static final long serialVersionUID = 1L;
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description = "主键ID")
private Long id;
/**
* 主键ID
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description = "主键ID")
private Long id;
/**
* 表名称
*/
@Schema(description = "表名称")
private String tableName;
/**
* 数据源名称
*/
@Schema(description = "数据源名称")
private String dsName;
/**
* 表注释
*/
@Schema(description = "表注释")
private String comments;
/**
* 表名称
*/
@Schema(description = "表名称")
private String tableName;
/**
* 字段信息
*/
@Schema(description = "字段信息")
private String columnInfo;
/**
* 表注释
*/
@Schema(description = "表注释")
private String comments;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description = "创建人")
private String createBy;
/**
* 字段信息
*/
@Schema(description = "字段信息")
private String columnInfo;
/**
* 修改人
*/
@TableField(fill = FieldFill.UPDATE)
@Schema(description = "修改人")
private String updateBy;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description = "创建人")
private String createBy;
/**
* 创建时间
*/
@Schema(description = "创建时间")
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/**
* 修改人
*/
@TableField(fill = FieldFill.UPDATE)
@Schema(description = "修改人")
private String updateBy;
/**
* 修改时间
*/
@Schema(description = "修改时间")
@TableField(fill = FieldFill.UPDATE)
private LocalDateTime updateTime;
/**
* 创建时间
*/
@Schema(description = "创建时间")
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/**
* 删除标识(0-正常,1-删除)
*/
@TableLogic
@TableField(fill = FieldFill.INSERT)
@Schema(description = "删除标记,1:已删除,0:正常")
private String delFlag;
/**
* 修改时间
*/
@Schema(description = "修改时间")
@TableField(fill = FieldFill.UPDATE)
private LocalDateTime updateTime;
/**
* 删除标识(0-正常,1-删除)
*/
@TableLogic
@TableField(fill = FieldFill.INSERT)
@Schema(description = "删除标记,1:已删除,0:正常")
private String delFlag;
}