77 lines
1.7 KiB
C#
Raw Normal View History

2025-12-17 11:12:13 +08:00
using YD_Event.Core.Enum;
2025-12-17 10:32:52 +08:00
2025-12-17 11:12:13 +08:00
namespace YD_Event.Core.Entities;
2025-12-17 10:32:52 +08:00
/// <summary>
/// 自定义配置
/// </summary>
2026-02-26 18:29:08 +08:00
public class CustomConfig : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
2025-12-17 10:32:52 +08:00
{
/// <summary>
/// 配置名称
/// </summary>
[SugarColumn(Length = 32)]
public string Name { get; set; }
/// <summary>
/// 配置唯一编码(类名)
/// </summary>
[SugarColumn(Length = 32)]
public string Code { get; set; }
/// <summary>
/// 是否是多项(集合)
/// </summary>
public bool IsMultiple { get; set; }
/// <summary>
/// 配置界面设计(json)
/// </summary>
[SugarColumn(ColumnDataType = "text")]
public string? Json { get; set; }
/// <summary>
/// 是否允许创建实体
/// </summary>
public bool AllowCreationEntity { get; set; }
/// <summary>
/// 是否已生成实体
/// </summary>
public bool IsGenerate { get; set; }
/// <summary>
/// 可用状态
/// </summary>
public AvailabilityStatus Status { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(Length = 256)]
public string? Remark { get; set; }
/// <summary>
2026-02-26 18:29:08 +08:00
/// 标记删除
2025-12-17 10:32:52 +08:00
/// </summary>
2026-02-26 18:29:08 +08:00
public bool DeleteMark { get; set; }
2025-12-17 10:32:52 +08:00
/// <summary>
2026-02-26 18:29:08 +08:00
/// 创建人
2025-12-17 10:32:52 +08:00
/// </summary>
2026-02-26 18:29:08 +08:00
public long CreatedUserId { get; set; }
2025-12-17 10:32:52 +08:00
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedTime { get; set; }
2026-02-26 18:29:08 +08:00
/// <summary>
/// 更新人
/// </summary>
public long? UpdatedUserId { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdatedTime { get; set; }
2025-12-17 10:32:52 +08:00
}