|
|
@ -23,34 +23,46 @@ import java.io.Serializable; |
|
|
|
@ApiModel(value = "数据库信息",description = "数据库信息") |
|
|
|
@ApiModel(value = "数据库信息",description = "数据库信息") |
|
|
|
public class TableInfoEntity extends TenantEntity implements Serializable { |
|
|
|
public class TableInfoEntity extends TenantEntity implements Serializable { |
|
|
|
|
|
|
|
|
|
|
|
@TableField("db_source") |
|
|
|
@ApiModelProperty(value = "数据源",required = true) |
|
|
|
@ApiModelProperty("数据源") |
|
|
|
@NotBlank |
|
|
|
|
|
|
|
@QueryField(condition = SqlCondition.EQUAL) |
|
|
|
|
|
|
|
@TableField("data_source_id") |
|
|
|
|
|
|
|
private String datasourceId; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "数据源名称",required = true) |
|
|
|
@NotBlank |
|
|
|
@NotBlank |
|
|
|
@QueryField(condition = SqlCondition.LIKE) |
|
|
|
@QueryField(condition = SqlCondition.LIKE) |
|
|
|
private String datasource; |
|
|
|
@TableField("data_source_name") |
|
|
|
|
|
|
|
private String datasourceName; |
|
|
|
|
|
|
|
|
|
|
|
@TableField("db_name") |
|
|
|
@ApiModelProperty(value = "数据库",required = true) |
|
|
|
@ApiModelProperty("数据库") |
|
|
|
|
|
|
|
@NotBlank |
|
|
|
@NotBlank |
|
|
|
@QueryField(condition = SqlCondition.EQUAL) |
|
|
|
@QueryField(condition = SqlCondition.EQUAL) |
|
|
|
private String database; |
|
|
|
private String databaseName; |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("数据库表名") |
|
|
|
@ApiModelProperty(value = "数据库表名",required = true) |
|
|
|
@NotBlank |
|
|
|
@NotBlank |
|
|
|
@QueryField(condition = SqlCondition.EQUAL) |
|
|
|
@QueryField(condition = SqlCondition.EQUAL) |
|
|
|
private String tableName; |
|
|
|
private String tableName; |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("数据库表描述信息") |
|
|
|
@ApiModelProperty(value = "数据库类型,1:Mysql",required = true) |
|
|
|
|
|
|
|
@NotBlank |
|
|
|
|
|
|
|
private String dbType; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "数据库表描述信息",required = true) |
|
|
|
@NotBlank |
|
|
|
@NotBlank |
|
|
|
@QueryField(condition = SqlCondition.LIKE) |
|
|
|
@QueryField(condition = SqlCondition.LIKE) |
|
|
|
private String tableDesc; |
|
|
|
private String tableDesc; |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("数据库表列信息") |
|
|
|
@ApiModelProperty(value = "数据库表列信息",required = true) |
|
|
|
@NotBlank |
|
|
|
@NotBlank |
|
|
|
private String propDesc; |
|
|
|
private String propDesc; |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("举例") |
|
|
|
@ApiModelProperty("举例") |
|
|
|
@NotBlank |
|
|
|
|
|
|
|
private String example; |
|
|
|
private String example; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("表注表信息中的字段对应的向量库的表字段查询") |
|
|
|
|
|
|
|
@QueryField(condition = SqlCondition.LIKE) |
|
|
|
|
|
|
|
private String filterJson; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|