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,51 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
{
public class ProfileHistory : EntityBase
{
[MaxLength(13), Comment("รหัสบัตรประชาชน")]
public string? CitizenId { get; set; }
[Comment("Id คำนำหน้า")]
public Guid? PrefixId { get; set; }
[Comment("คำนำหน้า")]
public string? Prefix { get; set; }
[Required, MaxLength(100), Comment("ชื่อ")]
public string? FirstName { get; set; }
[Required, MaxLength(100), Comment("นามสกุล")]
public string? LastName { get; set; }
[Comment("Id เพศ")]
public Guid? GenderId { get; set; }
[Comment("เพศ")]
public string? Gender { get; set; }
[MaxLength(100), Comment("สัญชาติ")]
public string? Nationality { get; set; }
[MaxLength(100), Comment("เชื้อชาติ")]
public string? Race { get; set; }
[Comment("Id ศาสนา")]
public Guid? ReligionId { get; set; }
[Comment("ศาสนา")]
public string? Religion { get; set; }
[Required, Comment("วันเกิด")]
public DateTime BirthDate { get; set; }
[Comment("Id กลุ่มเลือด")]
public Guid? BloodGroupId { get; set; }
[Comment("กลุ่มเลือด")]
public string? BloodGroup { get; set; }
[Comment("Id สถานะภาพ")]
public Guid? RelationshipId { get; set; }
[Comment("สถานะภาพ")]
public string? Relationship { get; set; }
[MaxLength(50), Comment("เบอร์โทร")]
public string? TelephoneNumber { get; set; }
[MaxLength(20), Comment("ประเภทการจ้าง")]
public string? EmployeeType { get; set; }
[MaxLength(20), Comment("ประเภทลูกจ้าง")]
public string? EmployeeClass { get; set; }
public virtual Profile? Profile { get; set; }
}
}