using System; using System.Collections.Generic; using System.Linq; using SqlSugar; using LearningOfficer.OA.Core.Entities; using LearningOfficer.OA.Common.Configs; namespace LearningOfficer.OA.Core.Entities.UserCenter { /// /// 职位表 /// [SugarTable("position"), Tenant(nameof(ConnectionStringsSettings.UserCenterDb))] public class Position : BaseEntity { /// /// 备 注: /// 默认值: /// [SugarColumn(ColumnName = "Name" )] public string Name { get; set; } = null!; /// /// 备 注:上级编号 /// 默认值: /// [SugarColumn(ColumnName = "ParentId" )] public long ParentId { get; set; } /// /// 备 注:学校编号 /// 默认值: /// [SugarColumn(ColumnName = "SchoolId" )] public long SchoolId { get; set; } /// /// 备 注:年级 /// 默认值: /// [SugarColumn(ColumnName = "GradeLevel" )] public string GradeLevel { get; set; } = null!; /// /// 备 注:所属届 /// 默认值: /// [SugarColumn(ColumnName = "GraduationYear" )] public int GraduationYear { get; set; } /// /// 备 注:班级编号 /// 默认值: /// [SugarColumn(ColumnName = "ClassId" )] public long ClassId { get; set; } /// /// 备 注:职位类型 1:学生 2:教师 3:管理员 /// 默认值: /// [SugarColumn(ColumnName = "PositionType" )] public int PositionType { get; set; } /// /// 备 注:职级 1:教委 2:校级 3:年级 4:班级 5:教师 /// 默认值: /// [SugarColumn(ColumnName = "PositionLevel" )] public int PositionLevel { get; set; } /// /// 备 注:科目(枚举) /// 默认值: /// [SugarColumn(ColumnName = "SubjectId" )] public int SubjectId { get; set; } /// /// 备 注:删除状态 /// 默认值: /// [SugarColumn(ColumnName = "DeleteState" )] public bool DeleteState { get; set; } /// /// 备 注:添加时间 /// 默认值: /// [SugarColumn(ColumnName = "CreateTime" )] public DateTime CreateTime { get; set; } /// /// 备 注:职位状态 (true=正常 false=锁定) /// 默认值: /// [SugarColumn(ColumnName = "Enable" )] public bool Enable { get; set; } } }