namespace Model { /// /// sys_logininfor 表 /// [SugarTable("sys_logininfor", "登录日志表")] [Tenant("0")] public class SysLogininfor { [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public long InfoId { get; set; } /// /// 用户账号 /// public string UserName { get; set; } /// /// 登录状态 0成功 1失败 /// [SugarColumn(Length = 1, DefaultValue = "0")] public string Status { get; set; } /// /// 登录IP地址 /// public string Ipaddr { get; set; } = string.Empty; /// /// 登录地点 /// public string LoginLocation { get; set; } = string.Empty; /// /// 浏览器类型 /// public string Browser { get; set; } = string.Empty; /// /// 操作系统 /// public string Os { get; set; } = string.Empty; /// /// 提示消息 /// public string Msg { get; set; } = string.Empty; /// /// 访问时间 /// public DateTime LoginTime { get; set; } = DateTime.Now; [SugarColumn(IsIgnore = true)] public DateTime? BeginTime { get; set; } [SugarColumn(IsIgnore = true)] public DateTime? EndTime { get; set; } } }