using Mapster;
using Util;
namespace Model.Source
{
///
/// 数据字段 database_field
///
public class DatabaseField
{
///
/// ID
///
public int id { get; set; }
///
/// 版本号
///
public int version { get; set; }
///
/// 删除标记
///
public int delFlag { get; set; }
///
/// 创建时间
///
public DateTime? createTime { get; set; }
///
/// 更新时间
///
public DateTime? updateTime { get; set; }
///
/// 创建人
///
public string? createBy { get; set; }
///
/// 更新人
///
public string? updateBy { get; set; }
///
/// 数据库
///
public int databaseId { get; set; }
///
/// 数据表
///
public int tableId { get; set; }
///
/// 选项卡
///
public int tabId { get; set; }
///
/// 字段标题
///
public string? fieldTitle { get; set; }
///
/// 字段名
///
public string? fieldName { get; set; }
public string? fieldNameUpper
{
get
{
return PublicFunction.transferName(fieldName);
}
}
///
/// 字段类型
///
public string? fieldType { get; set; }
public bool notNull
{
get
{
if (fieldType == "int" || fieldType == "bigint" || fieldType == "bit" || fieldType == "numeric")
{
return true;
}
return false;
}
}
///
/// 字段长度
///
public string? fieldLength { get; set; }
///
/// 字段默认值
///
public string? fieldDefaultValue { get; set; }
///
/// 字段说明
///
public string? fieldDetail { get; set; }
///
/// 编辑类型
///
public string? editType { get; set; }
///
/// 验证属性
///
public string? validateAttribute { get; set; }
///
/// 主键
///
public bool primaryKey { get; set; }
///
/// 自动增长
///
public bool autoIncrement { get; set; }
///
/// 分表字段
///
public bool splitFlag { get; set; }
///
/// 列表显示
///
public bool showList { get; set; }
///
/// 查询条件
///
public bool showQuery { get; set; }
///
/// 是否编辑
///
public bool showEdit { get; set; }
///
/// 检查重复
///
public bool checkRepeat { get; set; }
///
/// 导出标记
///
public bool exportFlag { get; set; }
///
/// 导入标记
///
public bool importFlag { get; set; }
///
/// 列表编辑
///
public bool listEditFlag { get; set; }
///
/// 列表编辑提示文字
///
public string? listEditPlaceholder { get; set; }
///
/// 统计条件字段
///
public bool statCondition { get; set; }
///
/// 统计数据字段
///
public bool statData { get; set; }
///
/// 关联数据表
///
public int linkTableId { get; set; }
///
/// 关联数据字段
///
public int linkFieldId { get; set; }
///
/// 关联数据源ID
///
public int apiId { get; set; }
}
}