using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YBEE.EQM.Core;
///
/// 人员
///
[Comment("人员")]
[Table("base_person")]
public partial class Person : DEntityBase
{
///
/// 姓名
///
[Comment("姓名")]
[Required, StringLength(100)]
public string Name { get; set; }
///
/// 曾用名
///
[Comment("曾用名")]
[StringLength(100)]
public string FormerName { get; set; }
///
/// 证件类型
///
[Comment("证件类型")]
[Required, Column(TypeName = "smallint")]
public CertificateType CertificateType { get; set; } = CertificateType.NONE;
///
/// 证件号码
///
[Comment("证件号码")]
[StringLength(50)]
public string IdNumber { get; set; } = "";
///
/// 出生日期
///
[Comment("出生日期")]
public DateTime? BirthDate { get; set; }
///
/// 性别
///
[Comment("性别")]
[Required, Column(TypeName = "smallint")]
public Gender Gender { get; set; } = Gender.UNKNOWN;
///
/// 手机号码
///
[Comment("手机号码")]
[StringLength(50)]
public string Mobile { get; set; } = "";
///
/// 电子邮箱
///
[Comment("电子邮箱")]
[StringLength(200)]
public string Email { get; set; } = "";
///
/// 备注
///
[Comment("备注")]
[StringLength(200)]
public string Remark { get; set; } = "";
}