32 lines
1.3 KiB
C#
32 lines
1.3 KiB
C#
using BMA.EHR.Recruit.Service.Models.Documents;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace BMA.EHR.Recruit.Service.Models.Recruits
|
|
{
|
|
public class RecruitImport : EntityBase
|
|
{
|
|
[Required, Comment("ปีที่จัดการสอบ"), Column(Order = 1)]
|
|
public int Year { get; set; }
|
|
|
|
[Required, MaxLength(250), Comment("ชื่อการสอบ"), Column(Order = 2)]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[Required, Comment("ครั้งที่"), Column(Order = 3)]
|
|
public int Order { get; set; } = 1;
|
|
|
|
[Column(TypeName = "text", Order = 4), Comment("รายละเอียดของการสอบ")]
|
|
public string Description { get; set; } = String.Empty;
|
|
|
|
[Comment("รหัสหน่วยงานที่จัดสอบ"), Column(Order = 5)]
|
|
public Guid OrganizationId { get; set; }
|
|
|
|
[MaxLength(250), Comment("หน่วยงานที่ทำการจัดสอบ"), Column(Order = 6)]
|
|
public string OrganizationName { get; set; } = string.Empty;
|
|
|
|
public Document ImportFile { get; set; } = new Document();
|
|
|
|
public List<Recruit> Recruits { get; set; } = new List<Recruit>();
|
|
}
|
|
}
|