2023-08-15 22:52:30 -05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace DamageAssesment.Api.Locations.Db
|
|
|
|
|
{
|
2023-10-12 15:01:24 -05:00
|
|
|
|
[Table("Locations")]
|
2023-08-15 22:52:30 -05:00
|
|
|
|
public class Location
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
2023-09-13 00:28:24 -05:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[ForeignKey("Region")]
|
|
|
|
|
public int RegionId { get; set; }
|
2023-08-15 22:52:30 -05:00
|
|
|
|
[StringLength(4)]
|
2023-09-13 00:28:24 -05:00
|
|
|
|
public string LocationCode { get; set; }
|
2023-08-15 22:52:30 -05:00
|
|
|
|
|
|
|
|
|
[StringLength(50)]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
2023-09-13 00:28:24 -05:00
|
|
|
|
[StringLength(4)]
|
2023-08-15 22:52:30 -05:00
|
|
|
|
public string MaintenanceCenter { get; set; }
|
|
|
|
|
|
|
|
|
|
[StringLength(2)]
|
|
|
|
|
public string SchoolType { get; set; }
|
2023-09-13 00:28:24 -05:00
|
|
|
|
|
2023-08-15 22:52:30 -05:00
|
|
|
|
}
|
|
|
|
|
}
|