using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace TravelExpenses.Models
{
    public class Vehicle
    {
        [Key][DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int VehicleId { get; set; }
        [NotMapped] public string VehicleName { get; set; }
        [Required] public string RegNumber { get; set; }
        [Required] public int VehicleModelId { get; set; } public VehicleModel VehicleModel { get; set; }
    }
}
