using System.ComponentModel; using SqlSugar; namespace DS.Module.Core.Log; /// /// 系统访问日志 /// [global::SqlSugar.SugarTable("sys_log_visit")] public class SysLogVisit { /// /// ID /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } /// /// 访问类型 0 登录 1 登出 /// public int LoginType { get; set; } /// /// 是否执行成功(true-是,false-否) /// public bool Success { get; set; } = true; /// /// 登录Id /// public long UserId { get; set; } /// /// 登录账户 /// public string UserCode { get; set; } /// /// 用户姓名 /// public string UserName { get; set; } /// /// 操作时间 /// public DateTime OpTime { get; set; } /// /// 消息 /// public string Message { get; set; } /// /// 创建时间 /// [Description("创建时间")] [SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true, ColumnDescription = "创建时间")] public DateTime CreateTime { get; set; } /// /// 租户id /// public long? TenantId { get; set; } }