using LearningOfficer.OA.Common.Configs;
using SqlSugar;
namespace LearningOfficer.OA.Core.Entities.UserCenter
{
///
/// 用户表【学生,教师,校职工】
///
[SugarTable("user"), Tenant(nameof(ConnectionStringsSettings.UserCenterDb))]
public class User : BaseEntity
{
///
/// 备 注:模板id
/// 默认值:
///
[SugarColumn(ColumnName = "TemplateId")]
public long TemplateId { get; set; } = 0;
///
/// 备 注:学校Id
/// 默认值:
///
[SugarColumn(ColumnName = "SchoolId")]
public long? SchoolId { get; set; }
///
/// 备 注:用户类型 1:学生 2:所有校职工
/// 默认值:
///
[SugarColumn(ColumnName = "UserType")]
public int UserType { get; set; }
///
/// 备 注:账号
/// 默认值:
///
[SugarColumn(ColumnName = "Account")]
public string Account { get; set; } = null!;
///
/// 备 注:学号/考号
/// 默认值:
///
[SugarColumn(ColumnName = "StudentId")]
public string StudentId { get; set; } = "";
///
/// 备 注:身份证号 18位数长度限制
/// 默认值:
///
[SugarColumn(ColumnName = "IdCard")]
public string? IdCard { get; set; }
///
/// 备 注:密码
/// 默认值:
///
[SugarColumn(ColumnName = "Password")]
public string Password { get; set; } = null!;
///
/// 备 注:姓名
/// 默认值:
///
[SugarColumn(ColumnName = "RealName")]
public string RealName { get; set; } = null!;
///
/// 备 注:性别 0=男 1=女
/// 默认值:
///
[SugarColumn(ColumnName = "Sex")]
public int Sex { get; set; } = 0;
///
/// 备 注:出生日期
/// 默认值:
///
[SugarColumn(ColumnName = "BirthDate")]
public DateTime BirthDate { get; set; } = DateTime.Now;
///
/// 备 注:家庭户口
/// 默认值:
///
[SugarColumn(ColumnName = "Residence")]
public string Residence { get; set; } = "";
///
/// 备 注:民族
/// 默认值:
///
[SugarColumn(ColumnName = "National")]
public string National { get; set; } = "";
///
/// 备 注:头像
/// 默认值:
///
[SugarColumn(ColumnName = "HeadImage")]
public string HeadImage { get; set; } = "";
///
/// 备 注:省Id
/// 默认值:
///
[SugarColumn(ColumnName = "Pid")]
public int Pid { get; set; } = 0;
///
/// 备 注:
/// 默认值:
///
[SugarColumn(ColumnName = "Pname")]
public string Pname { get; set; } = "";
///
/// 备 注:市Id
/// 默认值:
///
[SugarColumn(ColumnName = "Cid")]
public int Cid { get; set; } = 0;
///
/// 备 注:
/// 默认值:
///
[SugarColumn(ColumnName = "Cname")]
public string Cname { get; set; } = "";
///
/// 备 注:区Id
/// 默认值:
///
[SugarColumn(ColumnName = "Rid")]
public int Rid { get; set; } = 0;
///
/// 备 注:
/// 默认值:
///
[SugarColumn(ColumnName = "Rname")]
public string Rname { get; set; } = "";
///
/// 备 注:微信号
/// 默认值:
///
[SugarColumn(ColumnName = "Wx")]
public string Wx { get; set; } = "";
///
/// 备 注:是否完善信息 0:否 1:是
/// 默认值:
///
[SugarColumn(ColumnName = "IsPerfectInfo")]
public int IsPerfectInfo { get; set; } = 0;
///
/// 备 注:账户状态 0禁用 1正常
/// 默认值:
///
[SugarColumn(ColumnName = "State")]
public int State { get; set; } = 1;
///
/// 备 注:直播平台编号
/// 默认值:
///
[SugarColumn(ColumnName = "LiveId")]
public long LiveId { get; set; } = 0;
///
/// 备 注:上次登录时间
/// 默认值:
///
[SugarColumn(ColumnName = "LastLoginTime")]
public DateTime LastLoginTime { get; set; } = DateTime.Now;
///
/// 备 注:登录IP
/// 默认值:
///
[SugarColumn(ColumnName = "LastLoginIP")]
public string LastLoginIP { get; set; } = "";
///
/// 备 注:添加时间
/// 默认值:
///
[SugarColumn(ColumnName = "CreateTime")]
public DateTime CreateTime { get; set; } = DateTime.Now;
///
/// 备 注:层次
/// 默认值:
///
[SugarColumn(ColumnName = "Level")]
public int Level { get; set; } = 0;
///
/// 备 注:会议系统账号
/// 默认值:
///
[SugarColumn(ColumnName = "MeetingAccount")]
public string? MeetingAccount { get; set; }
///
/// 备 注:新高考物理化学选科
/// 默认值:
///
[SugarColumn(ColumnName = "GLSubject")]
public int? GLSubject { get; set; }
///
/// 备 注:新高考,政地化生选科1
/// 默认值:
///
[SugarColumn(ColumnName = "GSubject1")]
public int? GSubject1 { get; set; }
///
/// 备 注:新高考,政地化生选科2
/// 默认值:
///
[SugarColumn(ColumnName = "GSubject2")]
public int? GSubject2 { get; set; }
///
/// 备 注:第三方id
/// 默认值:
///
[SugarColumn(ColumnName = "ThirdPartyId")]
public string? ThirdPartyId { get; set; }
///
/// 备 注:电话号码
/// 默认值:
///
[SugarColumn(ColumnName = "Phone")]
public string? Phone { get; set; }
///
/// 备 注:点阵笔SN
/// 默认值:
///
[SugarColumn(ColumnName = "PointPenSN")]
public string? PointPenSN { get; set; }
///
/// 备 注:删除状态
/// 默认值:
///
[SugarColumn(ColumnName = "DeleteState")]
public bool DeleteState { get; set; } = false;
///
/// 备 注:互动课堂创建人Id
/// 默认值:
///
[SugarColumn(ColumnName = "HdktCreatorId")]
public long? HdktCreatorId { get; set; }
///
/// 备 注:用户来源
/// 默认值:
///
[SugarColumn(ColumnName = "Source")]
public int Source { get; set; } = 0;
///
/// 备 注:点阵笔MAC
/// 默认值:
///
[SugarColumn(ColumnName = "PointPenMAC")]
public string? PointPenMAC { get; set; }
///
/// 备 注:创建人名称
/// 默认值:
///
[SugarColumn(ColumnName = "Creator")]
public string? Creator { get; set; }
///
/// 备 注:学生阶段级别[初中 高中 中职...][枚举]
/// 默认值:
///
[SugarColumn(ColumnName = "StagesLevel")]
public int? StagesLevel { get; set; }
///
/// 备 注:云校id
/// 默认值:
///
[SugarColumn(ColumnName = "CloudSchoolId")]
public long? CloudSchoolId { get; set; }
}
}