SysLogVis.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. using Furion.DatabaseAccessor;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. namespace YBEE.EQM.Core
  7. {
  8. /// <summary>
  9. /// 访问日志表
  10. /// </summary>
  11. [Comment("访问日志表")]
  12. public partial class SysLogVis : IEntity
  13. {
  14. /// <summary>
  15. /// 主键
  16. /// </summary>
  17. [Comment("主键")]
  18. [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  19. public long Id { get; set; }
  20. /// <summary>
  21. /// 名称
  22. /// </summary>
  23. [Comment("名称")]
  24. [StringLength(100)]
  25. public string Name { get; set; }
  26. /// <summary>
  27. /// 是否执行成功
  28. /// </summary>
  29. [Comment("是否执行成功")]
  30. public bool Success { get; set; }
  31. /// <summary>
  32. /// 具体消息
  33. /// </summary>
  34. [Comment("具体消息")]
  35. public string Message { get; set; }
  36. /// <summary>
  37. /// IP
  38. /// </summary>
  39. [Comment("IP")]
  40. [StringLength(20)]
  41. public string Ip { get; set; }
  42. /// <summary>
  43. /// 地址
  44. /// </summary>
  45. [Comment("地址")]
  46. [StringLength(1024)]
  47. public string Location { get; set; }
  48. /// <summary>
  49. /// 浏览器
  50. /// </summary>
  51. [Comment("浏览器")]
  52. [StringLength(100)]
  53. public string Browser { get; set; }
  54. /// <summary>
  55. /// 操作系统
  56. /// </summary>
  57. [Comment("操作系统")]
  58. [StringLength(100)]
  59. public string Os { get; set; }
  60. /// <summary>
  61. /// 访问类型
  62. /// </summary>
  63. [Comment("访问类型")]
  64. public LoginType VisType { get; set; }
  65. /// <summary>
  66. /// 访问时间
  67. /// </summary>
  68. [Comment("访问时间")]
  69. public DateTime? VisTime { get; set; }
  70. /// <summary>
  71. /// 访问人
  72. /// </summary>
  73. [Comment("访问人")]
  74. [StringLength(50)]
  75. public string Account { get; set; }
  76. }
  77. }