SysLogAudit.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // 麻省理工学院许可证
  2. //
  3. // 版权所有 (c) 2021-2023 zuohuaijun,大名科技(天津)有限公司 联系电话/微信:18020030720 QQ:515096995
  4. //
  5. // 特此免费授予获得本软件的任何人以处理本软件的权利,但须遵守以下条件:在所有副本或重要部分的软件中必须包括上述版权声明和本许可声明。
  6. //
  7. // 软件按“原样”提供,不提供任何形式的明示或暗示的保证,包括但不限于对适销性、适用性和非侵权的保证。
  8. // 在任何情况下,作者或版权持有人均不对任何索赔、损害或其他责任负责,无论是因合同、侵权或其他方式引起的,与软件或其使用或其他交易有关。
  9. namespace Admin.NET.Core;
  10. /// <summary>
  11. /// 系统审计日志表
  12. /// </summary>
  13. [SugarTable(null, "系统审计日志表")]
  14. [SysTable]
  15. [LogTable]
  16. public class SysLogAudit : EntityBase
  17. {
  18. /// <summary>
  19. /// 表名
  20. /// </summary>
  21. [SugarColumn(ColumnDescription = "表名", Length = 64)]
  22. [Required, MaxLength(64)]
  23. public virtual string TableName { get; set; }
  24. /// <summary>
  25. /// 列名
  26. /// </summary>
  27. [SugarColumn(ColumnDescription = "列名", Length = 64)]
  28. [Required, MaxLength(64)]
  29. public virtual string ColumnName { get; set; }
  30. /// <summary>
  31. /// 新值
  32. /// </summary>
  33. [SugarColumn(ColumnDescription = "新值", ColumnDataType = StaticConfig.CodeFirst_BigString)]
  34. public string? NewValue { get; set; }
  35. /// <summary>
  36. /// 旧值
  37. /// </summary>
  38. [SugarColumn(ColumnDescription = "旧值", ColumnDataType = StaticConfig.CodeFirst_BigString)]
  39. public string? OldValue { get; set; }
  40. /// <summary>
  41. /// 操作方式(新增、更新、删除)
  42. /// </summary>
  43. [SugarColumn(ColumnDescription = "操作方式")]
  44. public DataOpTypeEnum Operate { get; set; }
  45. /// <summary>
  46. /// 审计时间
  47. /// </summary>
  48. [SugarColumn(ColumnDescription = "审计时间")]
  49. public DateTime? AuditTime { get; set; }
  50. /// <summary>
  51. /// 账号
  52. /// </summary>
  53. [SugarColumn(ColumnDescription = "账号", Length = 32)]
  54. [MaxLength(32)]
  55. public string? Account { get; set; }
  56. /// <summary>
  57. /// 真实姓名
  58. /// </summary>
  59. [SugarColumn(ColumnDescription = "真实姓名", Length = 32)]
  60. [MaxLength(32)]
  61. public string? RealName { get; set; }
  62. }