36 lines
1.4 KiB
C#
36 lines
1.4 KiB
C#
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 = 4), Comment("ชื่อการสอบ")]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[Required, Column(Order = 1), Comment("วันเริ่มสมัครสอบ")]
|
|
public DateTime StartDate { get; set; } = DateTime.Now.Date;
|
|
|
|
[Required, Column(Order = 2), Comment("วันสิ้นสุด")]
|
|
public DateTime EndDate { get; set; } = DateTime.Now.Date;
|
|
|
|
[Column(Order = 5), Comment("รอบการสอบ")]
|
|
public int? Round { get; set; }
|
|
|
|
[Comment("ค่าธรรมเนียม")]
|
|
public float? Fee { get; set; } = 0;
|
|
|
|
[Comment("ปีงบประมาณ")]
|
|
public int? Year { get; set; }
|
|
|
|
[Comment("รายละเอียดสมัครสอบ")]
|
|
public string? Detail { get; set; }
|
|
|
|
[Required, Column(Order = 3), Comment("วันประกาศ")]
|
|
public DateTime AnnounceDate { get; set; } = DateTime.Now.Date;
|
|
|
|
[Comment("สถานะการใช้งาน")]
|
|
public bool IsActive { get; set; } = true;
|
|
}
|
|
}
|