39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
using BMA.EHR.MetaData.Service.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace BMA.EHR.Organization.Service.Models
|
|
{
|
|
public class OrganizationPositionEntity : EntityBase
|
|
{
|
|
|
|
[ForeignKey("PositionMasterId")]
|
|
public PositionMasterEntity? PositionMaster_PositionMasterId { get; set; }
|
|
|
|
[Column(Order = 2), Comment("Position Master")]
|
|
public Guid? PositionMasterId { get; set; }
|
|
|
|
[Column(Order = 3), Comment("Is Director")]
|
|
public bool? IsDirector { get; set; }
|
|
|
|
[Column(Order = 4), Comment("positionUserNote")]
|
|
public string? PositionUserNote { get; set; }
|
|
|
|
[ForeignKey("OrganizationId")]
|
|
public OrganizationEntity? Organization_OrganizationId { get; set; }
|
|
|
|
[Column(Order = 5), Comment("OrganizationId")]
|
|
public Guid? OrganizationId { get; set; }
|
|
|
|
[Column(Order = 6), Comment("PositionNumberId")]
|
|
public Guid? PositionNumberId { get; set; }
|
|
|
|
[Column(Order = 7), Comment("ติดเงื่อนไข")]
|
|
public bool? IsCondition { get; set; }
|
|
|
|
[Column(Order = 8), Comment("รายละเอียดเงื่อนไข")]
|
|
public string? ConditionNote { get; set; }
|
|
|
|
}
|
|
}
|