using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace New_College.Model.Models
{
///
/// 用户信息表
///
public class sysUserInfo
{
public sysUserInfo() { }
public sysUserInfo(string loginName, string loginPWD)
{
uLoginName = loginName;
uLoginPWD = loginPWD;
uRealName = uLoginName;
uStatus = 0;
uCreateTime = DateTime.Now;
uUpdateTime = DateTime.Now;
uLastErrTime = DateTime.Now;
uErrorCount = 0;
name = "";
}
///
/// 租户Id
///
public virtual int? TenantId { get; set; }
///
/// 用户ID
///
[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
public int uID { get; set; }
///
/// 登录账号
///
[SugarColumn(ColumnDataType ="nvarchar",Length = 200, IsNullable = true)]
public string uLoginName { get; set; }
///
/// 登录密码
///
[SugarColumn(ColumnDataType ="nvarchar",Length = 200, IsNullable = true)]
public string uLoginPWD { get; set; }
///
/// 真实姓名
///
[SugarColumn(ColumnDataType ="nvarchar",Length = 200, IsNullable = true)]
public string uRealName { get; set; }
///
/// 状态
///
public int uStatus { get; set; }
///
/// 备注
///
[SugarColumn(ColumnDataType ="nvarchar",Length = int.MaxValue, IsNullable = true)]
public string uRemark { get; set; }
///
/// 创建时间
///
public System.DateTime uCreateTime { get; set; } = DateTime.Now;
///
/// 更新时间
///
public System.DateTime uUpdateTime { get; set; } = DateTime.Now;
///
///最后登录时间
///
public DateTime uLastErrTime { get; set; }= DateTime.Now;
///
///错误次数
///
public int uErrorCount { get; set; }
///
/// 登录账号
///
[SugarColumn(ColumnDataType ="nvarchar",Length = 200, IsNullable = true)]
public string name { get; set; }
// 性别
[SugarColumn(IsNullable = true)]
public int sex { get; set; } = 0;
// 年龄
[SugarColumn(IsNullable = true)]
public int age { get; set; }
// 生日
[SugarColumn(IsNullable = true)]
public DateTime birth { get; set; } = DateTime.Now;
// 地址
[SugarColumn(ColumnDataType ="nvarchar",Length = 200, IsNullable = true)]
public string addr { get; set; }
[SugarColumn(IsNullable = true)]
public bool tdIsDelete { get; set; }
[SugarColumn(IsIgnore = true)]
public List RIDs { get; set; }
[SugarColumn(IsIgnore = true)]
public List RoleNames { get; set; }
}
}