21 lines
776 B
C#
21 lines
776 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Org.BouncyCastle.Asn1.X509;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BMA.EHR.MetaData.Service.Models
|
|
{
|
|
public class SubDistrict : EntityBase
|
|
{
|
|
[Required, MaxLength(150), Column(Order = 1), Comment("เขต/อำเภอ")]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[Required, MaxLength(10), Column(Order = 2), Comment("รหัสไปรษณีย์")]
|
|
public string ZipCode { get; set; } = string.Empty;
|
|
|
|
[Column(Order = 3), Comment("สถานะการใช้งาน")]
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
public virtual District? District { get; set; }
|
|
}
|
|
}
|