namespace SafeCampus.System; [SugarTable("MajorInfo", TableDescription = "专业信息表")] [Tenant(SqlSugarConst.DB_DEFAULT)] [BatchEdit] [CodeGen] [IgnoreInitTable] public class MajorInfo : PrimaryKeyEntity { /// /// 专业名称 /// [SugarColumn(ColumnName = "Name", ColumnDescription = "专业名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)] public string Name { get; set; } /// /// 专业编码 /// [SugarColumn(ColumnName = "Code", ColumnDescription = "专业编码", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)] public string Code { get; set; } /// /// 专业简介 /// [SugarColumn(ColumnName = "Introduce", ColumnDescription = "专业简介", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)] public string Introduce { get; set; } /// /// 院系id /// [SugarColumn(ColumnName = "DepId", ColumnDescription = "院系id",IsNullable = false)] public long DepId { get; set; } /// /// 排序 /// [SugarColumn(ColumnName = "Sort", ColumnDescription = "排序", IsNullable = false)] public int Sort { get; set; } /// /// 院系信息 /// [Navigate(NavigateType.OneToOne, nameof(DepId))] public DepartmentInfo DepartmentInfoItem { get; set; } }