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

111 lines
3.1 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 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
{
/// <summary>
/// 班级表
///</summary>
[SugarTable("classes"), Tenant(nameof(ConnectionStringsSettings.UserCenterDb))]
public class Classes : BaseEntity
{
/// <summary>
/// 备 注:名称
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "Name")]
public string ClassName { get; set; } = null!;
/// <summary>
/// 备 注:学校编号
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "SchoolId")]
public long SchoolId { get; set; }
/// <summary>
/// 备 注:年级
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "GradeLevel")]
public string GradeLevel { get; set; } = null!;
/// <summary>
/// 备 注:所属届
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "GraduationYear")]
public int GraduationYear { get; set; }
/// <summary>
/// 备 注:添加时间
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "CreateTime", IsOnlyIgnoreUpdate = true)]
public DateTime CreateTime { get; set; } = DateTime.Now;
/// <summary>
/// 备 注:创建者部门Id
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "CreatePositionId")]
public long? CreatePositionId { get; set; } = 0;
/// <summary>
/// 备 注:删除状态
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "DeleteState")]
public bool DeleteState { get; set; }
/// <summary>
/// 备 注:班级类型
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "Type")]
public ClassTypeEnum Type { get; set; } = ClassTypeEnum.;
/// <summary>
/// 备 注:教学层级 1普通本科 2重点本科 默认0未设置
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "TeachingLevel")]
public Common.Enums.TeachingLevelEnum TeachingLevel { get; set; }
/// <summary>
/// 学校名称
/// </summary>
[SugarColumn(IsIgnore = true)]
public string SchoolName { get; set; }
/// <summary>
/// 备 注:选修方向1
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "Elective1")]
public int? Elective1 { get; set; }
/// <summary>
/// 备 注:选修方向2
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "Elective2")]
public int? Elective2 { get; set; }
/// <summary>
/// 备 注:选修方向3
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "Elective3")]
public int? Elective3 { get; set; }
}
}