Add MetaData Table From ExistData

Change to use MySQL
This commit is contained in:
Suphonchai Phoonsawat 2023-06-26 14:02:04 +07:00
parent 89de09d213
commit a0b3b13074
136 changed files with 3438 additions and 1237 deletions

View file

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
using BMA.EHR.Profile.Service.Models.Documents;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Profile.Service.Models.HR
{
public class ProfileChangeName : EntityBase
{
[Comment("Id คำนำหน้า")]
public Guid? PrefixId { get; set; }
[Comment("คำนำหน้า")]
public string? Prefix { get; set; }
[MaxLength(100), Comment("ชื่อ")]
public string? FirstName { get; set; }
[MaxLength(100), Comment("นามสกุล")]
public string? LastName { get; set; }
[MaxLength(100), Comment("สถานะ")]
public string? Status { get; set; }
[Comment("เอกสารการเปลี่ยนชื่อ")]
public Document? Document { get; set; }
public virtual List<ProfileChangeNameHistory> ProfileChangeNameHistorys { get; set; } = new List<ProfileChangeNameHistory>();
public virtual Profile? Profile { get; set; }
}
}