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
88
BMA.EHR.Domain/Models/OrganizationEntity.cs
Normal file
88
BMA.EHR.Domain/Models/OrganizationEntity.cs
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
|
||||
namespace BMA.EHR.Organization.Service.Models
|
||||
{
|
||||
public class OrganizationEntity : EntityBase
|
||||
{
|
||||
|
||||
//[ForeignKey("OrganizationOrganizationId")]
|
||||
//public OrganizationOrganization? OrganizationOrganization_OrganizationOrganizationId { get; set; }
|
||||
|
||||
[Column(Order = 2), Comment("OrganizationOrganizationId")]
|
||||
public Guid? OrganizationOrganizationId { get; set; }
|
||||
|
||||
//[ForeignKey("OrganizationShortNameId")]
|
||||
//public OrganizationShortName? OrganizationShortName_OrganizationShortNameId { get; set; }
|
||||
|
||||
[Column(Order = 3), Comment("OrganizationShortNameId")]
|
||||
public Guid? OrganizationShortNameId { get; set; }
|
||||
|
||||
//[ForeignKey("OrganizationTypeId")]
|
||||
//public OrganizationType? OrganizationType_OrganizationTypeId { get; set; }
|
||||
|
||||
[Column(Order = 4), Comment("OrganizationTypeId")]
|
||||
public Guid? OrganizationTypeId { get; set; }
|
||||
|
||||
//[ForeignKey("OrganizationLevelId")]
|
||||
//public OrganizationLevel? OrganizationLevel_OrganizationLevelId { get; set; }
|
||||
|
||||
[Column(Order = 5), Comment("OrganizationLevelId")]
|
||||
public Guid? OrganizationLevelId { get; set; }
|
||||
|
||||
//[ForeignKey("OrganizationTelExternalId")]
|
||||
//public OrganizationTelExternal? OrganizationTelExternal_OrganizationTelExternalId { get; set; }
|
||||
|
||||
[Column(Order = 6), Comment("OrganizationTelExternalId")]
|
||||
public Guid? OrganizationTelExternalId { get; set; }
|
||||
|
||||
//[ForeignKey("OrganizationTelInternalId")]
|
||||
//public OrganizationTelInternal? OrganizationTelInternal_OrganizationTelInternalId { get; set; }
|
||||
|
||||
[Column(Order = 7), Comment("OrganizationTelInternalId")]
|
||||
public Guid? OrganizationTelInternalId { get; set; }
|
||||
|
||||
//[ForeignKey("OrganizationFaxId")]
|
||||
//public OrganizationFax? OrganizationFax_OrganizationFaxId { get; set; }
|
||||
|
||||
[Column(Order = 8), Comment("OrganizationFaxId")]
|
||||
public Guid? OrganizationFaxId { get; set; }
|
||||
|
||||
[ForeignKey("ParentId")]
|
||||
public OrganizationEntity? Organization_ParentId { get; set; }
|
||||
|
||||
[Column(Order = 9), Comment("ParentId")]
|
||||
public Guid? ParentId { get; set; }
|
||||
|
||||
[Column(Order = 10), Comment("OrganizationAgencyId")]
|
||||
public Guid? OrganizationAgencyId { get; set; }
|
||||
|
||||
[Column(Order = 11), Comment("OrganizationGovernmentAgencyId")]
|
||||
public Guid? OrganizationGovernmentAgencyId { get; set; }
|
||||
|
||||
[Column(Order = 12), Comment("OrganizationOrder")]
|
||||
public int? OrganizationOrder { get; set; }
|
||||
|
||||
[Column(Order = 13), Comment("OrganizationUserNote")]
|
||||
public string? OrganizationUserNote { get; set; }
|
||||
|
||||
[Column(Order = 14), Comment("หน่วยงาน")]
|
||||
public string? Agency { get; set; }
|
||||
|
||||
[Column(Order = 15), Comment("ส่วนราชการ")]
|
||||
public string? Government { get; set; }
|
||||
|
||||
[Column(Order = 16), Comment("ฝ่าย/ส่วน")]
|
||||
public string? Department { get; set; }
|
||||
|
||||
[Column(Order = 17), Comment("กอง")]
|
||||
public string? Pile { get; set; }
|
||||
|
||||
public Guid? OrganizationStatusId { get; set; }
|
||||
|
||||
public List<OrganizationEntity> Organizations { get; } = new();
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue