using SqlSugar; using System; using System.ComponentModel.DataAnnotations; namespace Admin.NET.Core { /// /// 系统审计日志表 /// [SugarTable("sys_log_audit", "系统审计日志表")] [SqlSugarEntity] public class SysLogAudit : EntityBase { /// /// 表名 /// [SugarColumn(ColumnDescription = "表名", Length = 50)] [MaxLength(50)] public string TableName { get; set; } /// /// 列名 /// [SugarColumn(ColumnDescription = "列名", Length = 50)] [MaxLength(50)] public string ColumnName { get; set; } /// /// 新值 /// [SugarColumn(ColumnDescription = "新值")] public string NewValue { get; set; } /// /// 旧值 /// [SugarColumn(ColumnDescription = "旧值")] public string OldValue { get; set; } /// /// 操作方式(新增、更新、删除) /// [SugarColumn(ColumnDescription = "操作方式")] public DataOpTypeEnum Operate { get; set; } /// /// 审计时间 /// [SugarColumn(ColumnDescription = "审计时间")] public DateTime? AuditTime { get; set; } /// /// 账号名称 /// [SugarColumn(ColumnDescription = "账号名称", Length = 20)] [MaxLength(20)] public string UserName { get; set; } /// /// 真实姓名 /// [SugarColumn(ColumnDescription = "真实姓名", Length = 20)] [MaxLength(20)] public string RealName { get; set; } } }