using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
///
/// 自定义配置
///
public class CustomConfig : Entity, IAvailability, ICreatedUserId, ISoftDelete, ICreatedTime
{
///
/// 配置名称
///
[SugarColumn(Length = 32)]
public string Name { get; set; }
///
/// 配置唯一编码(类名)
///
[SugarColumn(Length = 32)]
public string Code { get; set; }
///
/// 是否是多项(集合)
///
public bool IsMultiple { get; set; }
///
/// 配置界面设计(json)
///
[SugarColumn(ColumnDataType = "text")]
public string? Json { get; set; }
///
/// 是否允许创建实体
///
public bool AllowCreationEntity { get; set; }
///
/// 是否已生成实体
///
public bool IsGenerate { get; set; }
///
/// 可用状态
///
public AvailabilityStatus Status { get; set; }
///
/// 备注
///
[SugarColumn(Length = 256)]
public string? Remark { get; set; }
///
/// 创建人
///
public long CreatedUserId { get; set; }
///
/// 标记删除
///
public bool DeleteMark { get; set; }
///
/// 创建时间
///
public DateTime CreatedTime { get; set; }
}