using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; namespace FlightBooking.Service.Data.Models { public class FlightFare { [Key] public int Id { get; set; } public int FlightInformationId { get; set; } public string FareCode { get; set; } = null!; public string FareName { get; set; } = null!; [Precision(19, 4)] public decimal Price { get; set; } 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 virtual FlightInformation FlightInformation { get; set; } = null!; } }