Add Deploy And Receiver Table Structure
This commit is contained in:
parent
73407d3e73
commit
70cc95e408
7 changed files with 12358 additions and 8 deletions
33
BMA.EHR.Domain/Models/Commands/Core/CommandReceiver.cs
Normal file
33
BMA.EHR.Domain/Models/Commands/Core/CommandReceiver.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
using BMA.EHR.Domain.Models.Base;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Commands.Core
|
||||
{
|
||||
public class CommandReceiver : EntityBase
|
||||
{
|
||||
[Comment("รหัสอ้างอิงคำสั่ง")]
|
||||
public Guid CommandId { get; set; } = Guid.Empty;
|
||||
|
||||
public Command Command { get; set; } = new();
|
||||
|
||||
[Required,Comment("ลำดับในบัญชีแนบท้าย")]
|
||||
public int Sequence { get; set; } = 0;
|
||||
|
||||
[MaxLength(13), Required, Comment("เลขประจำตัวประชาชน")]
|
||||
public string CitizenId { get; set; } = string.Empty;
|
||||
|
||||
[MaxLength(50),Required,Comment("คำนำหน้านาม")]
|
||||
public string Prefix { get; set; } = string.Empty;
|
||||
|
||||
[MaxLength(100), Required, Comment("ชื่อ")]
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
|
||||
[MaxLength(100), Required, Comment("นามสกุล")]
|
||||
public string LastName { get; set; } = string.Empty;
|
||||
|
||||
[Column(TypeName = "text"),Comment("หมายเหตุ")]
|
||||
public string Comment { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue