namespace SafeCampus.System; [SugarTable("PersonSetInfo", TableDescription = "班级信息表")] [Tenant(SqlSugarConst.DB_DEFAULT)] [BatchEdit] [CodeGen] //[IgnoreInitTable] public class PersonSetInfo { /// /// 班级id /// [SugarColumn(ColumnDescription = "班级id", IsPrimaryKey = true)] public string PersonSetId { get; set; } /// /// 班级名称 /// [SugarColumn(ColumnName = "PersonSetName", ColumnDescription = "班级名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)] public string PersonSetName { get; set; } /// /// 专业id /// [SugarColumn(ColumnName = "MajorId", ColumnDescription = "专业id", IsNullable = false)] public long MajorId { get; set; } /// /// 专业信息 /// [Navigate(NavigateType.OneToOne, nameof(MajorId))] public MajorInfo MajorInfoItem { get; set; } /// /// 班主任信息 /// [Navigate(NavigateType.OneToOne, nameof(ClassTeacher.PersonSetId),nameof(PersonSetId))] public ClassTeacher ClassTeacherItem { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建时间", IsNullable = false, IsOnlyIgnoreUpdate = true)] public DateTime CreateTime { get; set; } }