31 lines
816 B
C#
Raw Normal View History

2023-08-15 23:52:30 -04:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DamageAssesment.Api.Locations.Db
{
2023-10-12 16:01:24 -04:00
[Table("Locations")]
2023-08-15 23:52:30 -04:00
public class Location
{
[Key]
public int Id { get; set; }
[ForeignKey("Region")]
public int RegionId { get; set; }
2023-08-15 23:52:30 -04:00
[StringLength(4)]
public string LocationCode { get; set; }
2023-08-15 23:52:30 -04:00
[StringLength(50)]
public string Name { get; set; }
[StringLength(4)]
2023-08-15 23:52:30 -04:00
public string MaintenanceCenter { get; set; }
[StringLength(2)]
public string SchoolType { get; set; }
public int? DataValue { get; set; }
public int? Enrollment { get; set; }
public double? Longitute { get; set; }
public double? Latitude { get; set; }
2023-08-15 23:52:30 -04:00
}
}