add migration สำหรับ LeaveBeginning

This commit is contained in:
Suphonchai Phoonsawat 2025-03-26 12:11:41 +07:00
parent 92451af236
commit 65fbf4582a
5 changed files with 1530 additions and 0 deletions

View file

@ -0,0 +1,24 @@
using BMA.EHR.Domain.Models.Base;
using BMA.EHR.Domain.Models.Leave.Commons;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Domain.Models.Leave.Requests
{
public class LeaveBeginning : EntityBase
{
[Required, Comment("รหัส Profile ในระบบทะเบียนประวัติ")]
public Guid ProfileId { get; set; } = Guid.Empty;
[Required, Comment("รหัสประเภทการลา")]
public Guid LeaveTypeId { get; set; } = Guid.Empty;
public LeaveType LeaveType { get; set; }
[Required, Comment("ปีงบประมาณ")]
public int LeaveYear { get; set; } = 0;
[Required, Comment("จำนวนวันลา")]
public double LeaveDays { get; set; } = 0.0;
}
}