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

namespace TravelExpenses.Models
{
    public class ToDestination
    {
        [Key][DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int ToDestinationId { get; set; }
        [Required] public int TravelOrderId { get; set; } public TravelOrder TravelOrder { get; set; }
        [Required] public int DestinationId { get; set; } public Destination Destination { get; set; }
        [Required] public int CountryId { get; set; } public Country Country { get; set; }
        [NotMapped] public string CountryName { get; set; }
        [Required] public int PlaceId { get; set; } public Place Place { get; set; }
        [NotMapped] public string PlaceName { get; set; }
        [Required] public int CenterId { get; set; } public Center Center { get; set; }
        [NotMapped] public string CenterName { get; set; }
        [Required] public int TravelTypeId { get; set; } public TravelType TravelType { get; set; }
        [NotMapped] public string TravelTypeName { get; set; }
    }
}
