hrms-api-backend/BMA.EHR.Domain/Models/HR/ProfileCurrentAddressHistory.cs
Suphonchai Phoonsawat 68dab7a727 Add Profile Table
2023-06-26 15:18:39 +07:00

34 lines
766 B
C#

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; }
}
}