using Mapster; using NPin.Framework.SqlSugarCore.Abstractions.Data; using SqlSugar; using Volo.Abp.Auditing; using Volo.Abp.Domain.Entities; namespace NPin.Framework.Upms.Domain.Entities; [SugarTable("Config", "系统配置表")] [SugarIndex($"index_{nameof(Key)}", nameof(Key), OrderByType.Asc, true)] public class ConfigEntity : Entity, IEnabled, IOrderNum, ISoftDelete, IAuditedObject { [SugarColumn(IsPrimaryKey = true)] public override Guid Id { get; protected set; } [SugarColumn(ColumnDescription = "配置名称")] public string Name { get; set; } = string.Empty; [SugarColumn(ColumnDescription = "配置键")] public string Key { get; set; } = string.Empty; [SugarColumn(ColumnDescription = "配置值")] public string Value { get; set; } = string.Empty; [SugarColumn(ColumnDescription = "配置描述")] public string? Remark { get; set; } = string.Empty; public bool IsEnabled { get; set; } public int OrderNum { get; set; } public bool IsDeleted { get; } public DateTime CreationTime { get; } public Guid? CreatorId { get; } public DateTime? LastModificationTime { get; } public Guid? LastModifierId { get; } }