hrms-api-exam/Models/SubDistrict.cs

21 lines
708 B
C#
Raw Permalink Normal View History

2023-03-23 12:31:21 +07:00
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Recurit.Exam.Service.Models
{
public class SubDistrict : EntityBase
{
2025-10-13 22:30:10 +07:00
[MaxLength(255), Column(Order = 1), Comment("แขวง")]
public string? name { get; set; } = null;
2023-03-23 12:31:21 +07:00
2025-10-13 22:30:10 +07:00
[MaxLength(10), Column(Order = 2), Comment("รหัสไปรษณีย์")]
public string? zipCode { get; set; } = null;
2023-03-23 12:31:21 +07:00
2025-01-05 21:59:15 +07:00
// [Column(Order = 3), Comment("สถานะการใช้งาน")]
// public bool IsActive { get; set; } = true;
2023-03-23 12:31:21 +07:00
2025-01-05 21:59:15 +07:00
// public virtual District? District { get; set; }
2023-03-23 12:31:21 +07:00
}
}