2023-07-16 20:01:24 +07:00
|
|
|
|
using BMA.EHR.MetaData.Service.Models;
|
2023-05-10 20:11:47 +07:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
2023-07-16 20:01:24 +07:00
|
|
|
|
namespace BMA.EHR.Organization.Service.Models
|
2023-05-10 20:11:47 +07:00
|
|
|
|
{
|
|
|
|
|
|
public class OrganizationPositionEntity : EntityBase
|
|
|
|
|
|
{
|
2023-07-16 20:01:24 +07:00
|
|
|
|
|
2023-05-10 20:11:47 +07:00
|
|
|
|
[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; }
|
2023-07-16 20:01:24 +07:00
|
|
|
|
|
|
|
|
|
|
[Column(Order = 7), Comment("ติดเงื่อนไข")]
|
|
|
|
|
|
public bool? IsCondition { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[Column(Order = 8), Comment("รายละเอียดเงื่อนไข")]
|
|
|
|
|
|
public string? ConditionNote { get; set; }
|
|
|
|
|
|
|
2023-05-10 20:11:47 +07:00
|
|
|
|
}
|
|
|
|
|
|
}
|