SysLogAudit.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. [SystemTable]
  15. public class SysLogAudit : EntityBase
  16. {
  17. /// <summary>
  18. /// 表名
  19. /// </summary>
  20. [SugarColumn(ColumnDescription = "表名", Length = 64)]
  21. [Required, MaxLength(64)]
  22. public virtual string TableName { get; set; }
  23. /// <summary>
  24. /// 列名
  25. /// </summary>
  26. [SugarColumn(ColumnDescription = "列名", Length = 64)]
  27. [Required, MaxLength(64)]
  28. public virtual string ColumnName { get; set; }
  29. /// <summary>
  30. /// 新值
  31. /// </summary>
  32. [SugarColumn(ColumnDescription = "新值", ColumnDataType = StaticConfig.CodeFirst_BigString)]
  33. public string? NewValue { get; set; }
  34. /// <summary>
  35. /// 旧值
  36. /// </summary>
  37. [SugarColumn(ColumnDescription = "旧值", ColumnDataType = StaticConfig.CodeFirst_BigString)]
  38. public string? OldValue { get; set; }
  39. /// <summary>
  40. /// 操作方式(新增、更新、删除)
  41. /// </summary>
  42. [SugarColumn(ColumnDescription = "操作方式")]
  43. public DataOpTypeEnum Operate { get; set; }
  44. /// <summary>
  45. /// 审计时间
  46. /// </summary>
  47. [SugarColumn(ColumnDescription = "审计时间")]
  48. public DateTime? AuditTime { get; set; }
  49. /// <summary>
  50. /// 账号
  51. /// </summary>
  52. [SugarColumn(ColumnDescription = "账号", Length = 32)]
  53. [MaxLength(32)]
  54. public string? Account { get; set; }
  55. /// <summary>
  56. /// 真实姓名
  57. /// </summary>
  58. [SugarColumn(ColumnDescription = "真实姓名", Length = 32)]
  59. [MaxLength(32)]
  60. public string? RealName { get; set; }
  61. }