add migration สำหรับ LeaveBeginning
This commit is contained in:
parent
92451af236
commit
65fbf4582a
5 changed files with 1530 additions and 0 deletions
24
BMA.EHR.Domain/Models/Leave/Requests/LeaveBeginning.cs
Normal file
24
BMA.EHR.Domain/Models/Leave/Requests/LeaveBeginning.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue