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

115 lines
3.0 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;
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; }
}
}