SystemLogLogin.cs 850 B

123456789101112131415161718192021222324252627282930
  1. using System.ComponentModel.DataAnnotations;
  2. using SqlSugar;
  3. using static EasyTemplate.Tool.Entity.PublicEnum;
  4. namespace EasyTemplate.Tool.Entity;
  5. /// <summary>
  6. /// 系统日志,记录登录信息
  7. /// </summary>
  8. [SugarTable(null, "系统日志,记录登录信息")]
  9. public class SystemLogLogin : EntityBaseLite
  10. {
  11. /// <summary>
  12. /// 日志信息
  13. /// </summary>
  14. [SugarColumn(ColumnDescription = "日志信息", IsNullable = true)]
  15. public string Info { get; set; }
  16. /// <summary>
  17. /// 用户id
  18. /// </summary>
  19. [SugarColumn(ColumnDescription = "用户id", DefaultValue ="1", IsNullable = true)]
  20. public long UserId { get; set; }
  21. /// <summary>
  22. /// 登录IP地址
  23. /// </summary>
  24. [SugarColumn(ColumnDescription = "登录IP地址", IsNullable = true)]
  25. public string IpAddress { get; set; }
  26. }