You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.3 KiB
C#
34 lines
1.3 KiB
C#
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("SysConfig", "系统配置表")]
|
|
[SugarIndex($"index_{nameof(Key)}", nameof(Key), OrderByType.Asc, true)]
|
|
public class ConfigAggregateRoot : AggregateRoot<Guid>, 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; set; }
|
|
public DateTime CreationTime { get; set; } = DateTime.Now;
|
|
public Guid? CreatorId { get; set; }
|
|
public DateTime? LastModificationTime { get; set; }
|
|
public Guid? LastModifierId { get; set; }
|
|
} |