using SqlSugar; using System; namespace YBDevice.Entity { /// /// 账户系统 /// [SugarTable("YB_Account", TableDescription = "账户系统", IsDisabledUpdateAll = false, IsDisabledDelete = true)] public class YB_Account { /// /// /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public System.Int32 Id { get; set; } /// /// 手机号 /// [SugarColumn(ColumnDescription = "手机号",ColumnDataType ="varchar(20)")] public System.String Phone { get; set; } /// /// 登录账户名 /// [SugarColumn(ColumnDescription = "登录账户名", ColumnDataType = "varchar(50)")] public System.String UserName { get; set; } /// /// 显示的名称 /// [SugarColumn(ColumnDescription = "显示的名称", ColumnDataType = "nvarchar(50)")] public System.String RealName { get; set; } /// /// 密码,MD5加密 /// [SugarColumn(ColumnDescription = "密码,MD5加密", ColumnDataType = "varchar(50)")] public System.String Password { get; set; } /// /// 密码密钥 /// [SugarColumn(ColumnDescription = "密码密钥", ColumnDataType = "varchar(50)")] public System.String Secret { get; set; } /// /// 所属的角色ID /// [SugarColumn(ColumnDescription = "所属的角色ID")] public int RoleId { get; set; } /// /// 所属的角色ID /// [SugarColumn(ColumnDescription = "所属的角色ID",IsNullable =true)] public Guid nRoleId { get; set; } /// /// 账户类型,1-普通,2-平台 /// [SugarColumn(ColumnDescription = "账户类型,1-普通,2-平台")] public AccountType AccountType { get; set; } /// /// 关联的客户ID /// [SugarColumn(ColumnDescription = "关联的客户ID")] public System.Int32 BusinessId { get; set; } /// /// 状态,0-禁用,1-启用 /// [SugarColumn(ColumnDescription = "状态,0-禁用,1-启用")] public StatusType Status { get; set; } /// /// 最近访问的IP地址 /// [SugarColumn(ColumnDescription = "最近访问的IP地址", ColumnDataType = "varchar(50)")] public System.String LastVisitIP { get; set; } /// /// 最近访问时间 /// [SugarColumn(ColumnDescription = "最近访问时间")] public System.DateTime LastVisitTime { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnDescription = "创建时间")] public System.DateTime CreateTime { get; set; } /// /// 头像 /// [SugarColumn(ColumnDescription = "头像", ColumnDataType = "varchar(100)",IsNullable =true)] public System.String HeadImg { get; set; } } }