Add MetaData Table From ExistData
Change to use MySQL
This commit is contained in:
parent
89de09d213
commit
a0b3b13074
136 changed files with 3438 additions and 1237 deletions
34
BMA.EHR.Domain/Models/HR/ProfileCurrentAddressHistory.cs
Normal file
34
BMA.EHR.Domain/Models/HR/ProfileCurrentAddressHistory.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Profile.Service.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; }
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue