Quanxue.Zhanghao.Daochu/LearningOfficer.OA.Core/Entities/UserCenter/User.cs

304 lines
8.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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