115 lines
3.0 KiB
C#
115 lines
3.0 KiB
C#
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
|
||
{
|
||
/// <summary>
|
||
/// 职位表
|
||
///</summary>
|
||
[SugarTable("position"), Tenant(nameof(ConnectionStringsSettings.UserCenterDb))]
|
||
public class Position : BaseEntity
|
||
{
|
||
|
||
/// <summary>
|
||
/// 备 注:
|
||
/// 默认值:
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "Name" )]
|
||
public string Name { get; set; } = null!;
|
||
|
||
|
||
/// <summary>
|
||
/// 备 注:上级编号
|
||
/// 默认值:
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "ParentId" )]
|
||
public long ParentId { get; set; }
|
||
|
||
|
||
/// <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 = "ClassId" )]
|
||
public long ClassId { get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// 备 注:职位类型 1:学生 2:教师 3:管理员
|
||
/// 默认值:
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "PositionType" )]
|
||
public int PositionType { get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// 备 注:职级 1:教委 2:校级 3:年级 4:班级 5:教师
|
||
/// 默认值:
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "PositionLevel" )]
|
||
public int PositionLevel { get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// 备 注:科目(枚举)
|
||
/// 默认值:
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "SubjectId" )]
|
||
public int SubjectId { get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// 备 注:删除状态
|
||
/// 默认值:
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "DeleteState" )]
|
||
public bool DeleteState { get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// 备 注:添加时间
|
||
/// 默认值:
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "CreateTime" )]
|
||
public DateTime CreateTime { get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// 备 注:职位状态 (true=正常 false=锁定)
|
||
/// 默认值:
|
||
///</summary>
|
||
[SugarColumn(ColumnName = "Enable" )]
|
||
public bool Enable { get; set; }
|
||
|
||
|
||
}
|
||
|
||
} |