using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YBEE.EQM.Core;
///
/// 学校教师
///
[Comment("学校教师")]
public class SchoolTeacher : DEntityBase
{
///
/// 机构ID
///
[Comment("机构ID")]
[Required]
public short SysOrgId { get; set; }
///
/// 人员ID
///
[Comment("人员ID")]
[Required]
public int PersonId { get; set; }
///
/// 学校职位ID
///
[Comment("学校职位ID")]
[Required, Column(TypeName = "smallint")]
public SchoolJobTitle SchoolJobTitle { get; set; } = SchoolJobTitle.TEACHER;
///
/// 是否外聘
///
[Comment("是否外聘")]
[Required]
public bool IsExternal { get; set; } = false;
///
/// 状态
///
[Comment("状态")]
[Required, Column(TypeName = "smallint")]
public CommonStatus CommonStatus { get; set; } = CommonStatus.ENABLE;
///
/// 一对一引用(机构)
///
public virtual SysOrg SysOrg { get; set; }
///
/// 一对一引用(人员)
///
public virtual Person Person { get; set; }
}