23 lines
659 B
C#
23 lines
659 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
|
||
|
|
namespace JobsMedical.Web.Models;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// A neighborhood / area within a city (e.g. سعادتآباد، تهرانپارس). Lets people narrow a
|
||
|
|
/// city down to where they actually want to work, alongside the "near me" distance filter.
|
||
|
|
/// </summary>
|
||
|
|
public class District
|
||
|
|
{
|
||
|
|
public int Id { get; set; }
|
||
|
|
|
||
|
|
public int CityId { get; set; }
|
||
|
|
public City City { get; set; } = null!;
|
||
|
|
|
||
|
|
[Required, MaxLength(120)]
|
||
|
|
public string Name { get; set; } = "";
|
||
|
|
|
||
|
|
public bool IsActive { get; set; } = true;
|
||
|
|
|
||
|
|
public ICollection<Facility> Facilities { get; set; } = new List<Facility>();
|
||
|
|
}
|