Add LeaveType Seeder

This commit is contained in:
Suphonchai Phoonsawat 2023-11-28 12:28:20 +07:00
parent ef66c28f0e
commit 8037ad7e1e
11 changed files with 1111 additions and 2 deletions

View file

@ -1,9 +1,15 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Domain.Models.Leave.Commons
{
public class LeaveType : EntityBase
{
[Required, Comment("ชื่อประเภทการลา")]
public string Name { get; set; } = string.Empty;
[Required, Comment("รหัสประเภทการลา")]
public string Code { get; set; } = string.Empty;
}
}