32 lines
1.4 KiB
C#
32 lines
1.4 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using BMA.EHR.Domain.Models.Base;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace BMA.EHR.Domain.Models.HR
|
|
{
|
|
public class ProfileCertificate : EntityBase
|
|
{
|
|
// [Key]
|
|
// public int Id { get; set; }
|
|
// [Required]
|
|
// public int Order { get; set; }
|
|
[MaxLength(20), Comment("เลขที่ใบอนุญาต")]
|
|
public string? CertificateNo { get; set; }
|
|
[MaxLength(200), Comment("หน่วยงานผู้ออกใบอนุญาต")]
|
|
public string? Issuer { get; set; }
|
|
[Comment("วันที่ออกใบอนุญาต")]
|
|
public DateTime? IssueDate { get; set; }
|
|
[Comment("วันที่หมดอายุ")]
|
|
public DateTime? ExpireDate { get; set; }
|
|
[MaxLength(100), Comment("ชื่อใบอนุญาต")]
|
|
public string? CertificateType { get; set; }
|
|
// public string? Name { get; set; }
|
|
// public string? CertiNumber { get; set; }
|
|
// public DateTime? Start { get; set; }
|
|
// public DateTime? End { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
public virtual List<ProfileCertificateHistory> ProfileCertificateHistorys { get; set; } = new List<ProfileCertificateHistory>();
|
|
public virtual Profile? Profile { get; set; }
|
|
}
|
|
}
|