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

namespace Shride.Models
{
    public class Ride
    {
        public Ride() { }
        public int RideId { get; set; }

        [DataType(DataType.DateTime)]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd, hh:mm}")]
        public DateTime Departure { get; set; }

        public int Seats { get; set; }

        public string Start { get; set; }
        public double StartLat { get; set; }
        public double StartLng { get; set; }

        public string End { get; set; }
        public double EndLat { get; set; }
        public double EndLng { get; set; }

        public bool Cancelled { get; set; }

        public Vehicle Vehicle { get; set; }

        public ICollection<Person> Persons { get; set; }

        public List<Transaction> Transactions { get; set; }

        public List<Review> Reviews { get; set; }
    }
}
