using System.ComponentModel.DataAnnotations; namespace FlightBooking.Service.Data.Models { public class FlightInformation { [Key] public int Id { get; set; } public string FlightNumber { get; set; } = null!; public string Origin { get; set; } = null!; public string Destination { get; set; } = null!; public DateTime DepartureDate { get; set; } public DateTime ArrivalDate { get; set; } public string Airline { get; set; } = null!; public int SeatCapacity { get; set; } public int SeatReserved { get; set; } public DateTime CreatedAt { get; set; } = DateTime.UtcNow; public DateTime UpdatedAt { get; set; } = DateTime.UtcNow; public ICollection<Booking> Bookings { get; set; } = new List<Booking>(); public ICollection<FlightFare> FlightFares { get; set; } = new List<FlightFare>(); public ICollection<ReservedSeat> ReservedSeats { get; set; } = new List<ReservedSeat>(); } }