using System; using System.Collections.Generic; using System.Linq; using SqlSugar; using LearningOfficer.OA.Core.Entities; using LearningOfficer.OA.Common.Configs; using LearningOfficer.OA.Common.Enums; using UserCenter.Model.Enum; namespace LearningOfficer.OA.Core.Entities.UserCenter { /// /// 班级表 /// [SugarTable("classes"), Tenant(nameof(ConnectionStringsSettings.UserCenterDb))] public class Classes : BaseEntity { /// /// 备 注:名称 /// 默认值: /// [SugarColumn(ColumnName = "Name")] public string ClassName { get; set; } = null!; /// /// 备 注:学校编号 /// 默认值: /// [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 = "CreateTime", IsOnlyIgnoreUpdate = true)] public DateTime CreateTime { get; set; } = DateTime.Now; /// /// 备 注:创建者部门Id /// 默认值: /// [SugarColumn(ColumnName = "CreatePositionId")] public long? CreatePositionId { get; set; } = 0; /// /// 备 注:删除状态 /// 默认值: /// [SugarColumn(ColumnName = "DeleteState")] public bool DeleteState { get; set; } /// /// 备 注:班级类型 /// 默认值: /// [SugarColumn(ColumnName = "Type")] public ClassTypeEnum Type { get; set; } = ClassTypeEnum.云校班; /// /// 备 注:教学层级 1:普通本科 2:重点本科 默认0未设置 /// 默认值: /// [SugarColumn(ColumnName = "TeachingLevel")] public Common.Enums.TeachingLevelEnum TeachingLevel { get; set; } /// /// 学校名称 /// [SugarColumn(IsIgnore = true)] public string SchoolName { get; set; } /// /// 备 注:选修方向1 /// 默认值: /// [SugarColumn(ColumnName = "Elective1")] public int? Elective1 { get; set; } /// /// 备 注:选修方向2 /// 默认值: /// [SugarColumn(ColumnName = "Elective2")] public int? Elective2 { get; set; } /// /// 备 注:选修方向3 /// 默认值: /// [SugarColumn(ColumnName = "Elective3")] public int? Elective3 { get; set; } } }