using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Shride.Models
{
  public class Person
  {
    public Person() { }

    public int PersonId { get; set; }

    [DataType(DataType.Date)]
    [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
    public DateTime BirthDate { get; set; }

    public Gender Gender { get; set; }

    public string FirstName { get; set; }

    public string LastName { get; set; }

    public bool Allergic { get; set; }

    public int AccountId { get; set; }
    public Account Account { get; set; }

    public ICollection<Ride> Rides { get; set; }
  }
}
