using Ant.Core.SqlServer.BaseEntities; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace Central.Control.WebApi.DbEntity { /// /// SYS_LoginSession系统登录信息 /// public class SYS_LoginSession: BaseEntity { /// /// 主键ID /// [Key] [MaxLength(50)] public string Id { set; get; } = string.Empty; /// /// 用户id /// [MaxLength(50)] [Required(AllowEmptyStrings = true)] public string UserId { set; get; } = string.Empty; /// /// 用户名称 /// [MaxLength(50)] [Required(AllowEmptyStrings = true)] public string UserName { set; get; } = string.Empty; /// /// token /// [MaxLength(200)] [Required(AllowEmptyStrings = true)] public string Token { set; get; } = string.Empty; /// /// 过期时间 /// public DateTime Expiration { set; get; } = DateTime.Now; } }