2023-07-26 18:42:42 +07:00
|
|
|
|
using BMA.EHR.Recruit.Service.Models;
|
|
|
|
|
|
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("เขต/อำเภอ")]
|
2025-01-05 21:59:00 +07:00
|
|
|
|
public string name { get; set; } = string.Empty;
|
2023-07-26 18:42:42 +07:00
|
|
|
|
|
|
|
|
|
|
[Required, MaxLength(10), Column(Order = 2), Comment("รหัสไปรษณีย์")]
|
2025-01-05 21:59:00 +07:00
|
|
|
|
public string zipCode { get; set; } = string.Empty;
|
2023-07-26 18:42:42 +07:00
|
|
|
|
|
2025-01-05 21:59:00 +07:00
|
|
|
|
// [Column(Order = 3), Comment("สถานะการใช้งาน")]
|
|
|
|
|
|
// public bool IsActive { get; set; } = true;
|
2023-07-26 18:42:42 +07:00
|
|
|
|
|
2025-01-05 21:59:00 +07:00
|
|
|
|
// public virtual District? District { get; set; }
|
2023-07-26 18:42:42 +07:00
|
|
|
|
}
|
|
|
|
|
|
}
|