สร้าง table บรรจุ

This commit is contained in:
Kittapath 2023-06-29 10:41:00 +07:00
parent b0228a5277
commit d387cc68bc
10 changed files with 12070 additions and 0 deletions

View file

@ -0,0 +1,27 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Domain.Models.Placement
{
public class Placement : EntityBase
{
[Required, Comment("รอบการสอบ")]
public string Name { get; set; } = string.Empty;
[Comment("ครั้งที่")]
public string Round { get; set; } = string.Empty;
[Required, Comment("ปีงบประมาณ"), MaxLength(5)]
public int Year { get; set; }
[Required, Comment("จำนวนผู้สอบได้"), MaxLength(10)]
public int Number { get; set; } = 0;
[Required, Comment("ประเภทการสอบ")]
public string TypeExam { get; set; } = string.Empty;
[Required, Comment("วันที่เริ่มบัญชีบัญชี")]
public DateTime StartDate { get; set; }
[Required, Comment("วันที่สิ้นสุดบัญชี")]
public DateTime EndDate { get; set; }
[Comment("สถานะการใช้งาน")]
public bool IsActive { get; set; } = true;
}
}