using System; using System.ComponentModel.DataAnnotations; using Microsoft.EntityFrameworkCore; namespace BMA.EHR.Domain.Models.HR { public class ProfileCurrentAddressHistory { [Key, Comment("ไม่ใช้")] public int Id { get; set; } [MaxLength(200)] [Required] public string Address { get; set; } [Required] public Guid SubDistrictId { get; set; } [Required] public Guid DistrictId { get; set; } [Required] public Guid ProvinceId { get; set; } [MaxLength(5)] [Required] public string ZipCode { get; set; } public DateTime CreatedDate { get; set; } = DateTime.Now; public Profile Profile { get; set; } } }