using SqlSugar; using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace GDZZ.Core.Entity; /// /// 系统操作/审计日志表 /// [SugarTable("sys_log_audit")] [Description("系统操作/审计日志表")] public class SysLogAudit : AutoIncrementEntity { /// /// 表名 /// [MaxLength(50)] [SugarColumn(ColumnDescription = "表名", IsNullable = true)] public string TableName { get; set; } /// /// 列名 /// [MaxLength(50)] [SugarColumn(ColumnDescription = "列名", IsNullable = true)] public string ColumnName { get; set; } /// /// 新值 /// [SugarColumn(ColumnDescription = "新值", IsNullable = true)] public string NewValue { get; set; } /// /// 旧值 /// [SugarColumn(ColumnDescription = "旧值", IsNullable = true)] public string OldValue { get; set; } /// /// 操作时间 /// [SugarColumn(ColumnDescription = "操作时间", IsNullable = true)] public DateTime CreatedTime { get; set; } /// /// 操作人Id /// [SugarColumn(ColumnDescription = "操作人Id")] public long UserId { get; set; } /// /// 操作人名称 /// [MaxLength(20)] [SugarColumn(ColumnDescription = "操作人名称", IsNullable = true)] public string UserName { get; set; } /// /// 操作方式:新增、更新、删除 /// [SugarColumn(ColumnDescription = "操作方式:新增、更新、删除")] public DataOpType Operate { get; set; } }