using SqlSugar; using System; namespace YBDevice.Entity { /// /// 审计日志 /// [SugarTable("YB_AuditLogger", TableDescription = "审计日志", IsDisabledUpdateAll = false, IsDisabledDelete = true)] public class YB_AuditLogger { /// /// 主键 /// [SugarColumn(IsPrimaryKey = true)] public Guid Id { get; set; } /// /// 操作内容 /// [SugarColumn(ColumnDescription = "操作内容", ColumnDataType = "nvarchar(100)")] public string Title { get; set; } /// /// 表名 /// [SugarColumn(ColumnDescription = "表名", ColumnDataType = "nvarchar(100)")] public string TableName { get; set; } /// /// 列名 /// [SugarColumn(ColumnDescription = "操作内容", ColumnDataType = "nvarchar(100)")] public string ColumnName { get; set; } /// /// 旧值 /// [SugarColumn(ColumnDescription = "旧值", ColumnDataType = "nvarchar(max)")] public string OldValue { get; set; } /// /// 新值 /// [SugarColumn(ColumnDescription = "新值", ColumnDataType = "nvarchar(max)")] public string NewValue { get; set; } /// /// 操作时间 /// [SugarColumn(ColumnDescription = "操作时间")] public DateTime CreatTime { get; set; } /// /// 操作人Id /// [SugarColumn(ColumnDescription = "操作人Id")] public int BusinessId { get; set; } /// /// 操作人名称 /// [SugarColumn(ColumnDescription = "操作人名称")] public string UserName { get; set; } /// /// 操作方式:新增、更新、删除 /// [SugarColumn(ColumnDescription = "操作方式:新增、更新、删除")] public DiffType Operate { get; set; } } }