using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace eprintServer.Entities { public class OfferProduct { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } public string? OfferId { get; set; } [Column("OfferId")] public int OfferForeignKey { get; set; } public string? ProductId { get; set; } public int? Quantity { get; set; } public decimal? UnitPrice { get; set; } public string? ProductName { get; set; } public bool IsCustomizableProduct { get; set; } [ForeignKey("OfferForeignKey")] public Offer? Offer { get; set; } public long? ProductImageId { get; set; } [ForeignKey("ProductImageId")] public FileModel? ProductImage { get; set; } } }