api บันทึก และ แสดง ข้อมูลผู้สมัคร

This commit is contained in:
Kittapath 2023-03-23 21:41:26 +07:00
parent ffeab6a127
commit a781c375d7
40 changed files with 10433 additions and 2 deletions

24
Models/PeriodExam.cs Normal file
View file

@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Recurit.Exam.Service.Models
{
public class PeriodExam : EntityBase
{
[Required, MaxLength(150), Column(Order = 1), Comment("ชื่อการสอบ")]
public string Name { get; set; } = string.Empty;
[Required, Column(Order = 2), Comment("วันเริ่มสมัครสอบ")]
public DateTime StartDate { get; set; } = DateTime.Now.Date;
[Required, Column(Order = 3), Comment("วันสิ้นสุด")]
public DateTime EndDate { get; set; } = DateTime.Now.Date;
[Required, Column(Order = 4), Comment("รายละเอียดสมัครสอบ")]
public string Detail { get; set; } = string.Empty;
[Column(Order = 5), Comment("สถานะการใช้งาน")]
public bool IsActive { get; set; } = true;
}
}