SysLogAudit.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. namespace Admin.NET.Core;
  2. /// <summary>
  3. /// 系统审计日志表
  4. /// </summary>
  5. [SugarTable("sys_log_audit", "系统审计日志表")]
  6. public class SysLogAudit : EntityBase
  7. {
  8. /// <summary>
  9. /// 表名
  10. /// </summary>
  11. [SugarColumn(ColumnDescription = "表名", Length = 64)]
  12. [Required, MaxLength(64)]
  13. public virtual string TableName { get; set; }
  14. /// <summary>
  15. /// 列名
  16. /// </summary>
  17. [SugarColumn(ColumnDescription = "列名", Length = 64)]
  18. [Required, MaxLength(64)]
  19. public virtual string ColumnName { get; set; }
  20. /// <summary>
  21. /// 新值
  22. /// </summary>
  23. [SugarColumn(ColumnDescription = "新值", ColumnDataType = "longtext,text,clob")]
  24. public string? NewValue { get; set; }
  25. /// <summary>
  26. /// 旧值
  27. /// </summary>
  28. [SugarColumn(ColumnDescription = "旧值", ColumnDataType = "longtext,text,clob")]
  29. public string? OldValue { get; set; }
  30. /// <summary>
  31. /// 操作方式(新增、更新、删除)
  32. /// </summary>
  33. [SugarColumn(ColumnDescription = "操作方式")]
  34. public DataOpTypeEnum Operate { get; set; }
  35. /// <summary>
  36. /// 审计时间
  37. /// </summary>
  38. [SugarColumn(ColumnDescription = "审计时间")]
  39. public DateTime? AuditTime { get; set; }
  40. /// <summary>
  41. /// 账号
  42. /// </summary>
  43. [SugarColumn(ColumnDescription = "账号", Length = 32)]
  44. [MaxLength(32)]
  45. public string? Account { get; set; }
  46. /// <summary>
  47. /// 真实姓名
  48. /// </summary>
  49. [SugarColumn(ColumnDescription = "真实姓名", Length = 32)]
  50. [MaxLength(32)]
  51. public string? RealName { get; set; }
  52. }