using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace eprintServer.Entities { public class Offer { [Key] [Column("id")] public int Id { get; set; } [NotMapped] public ICollection Title { get; set; } = new List(); [NotMapped] public ICollection Description { get; set; } = new List(); public string? Type { get; set; } public string? Status { get; set; } public decimal? OfferPrice { get; set; } public decimal? OriginalTotal { get; set; } public decimal? DiscountAmount { get; set; } public string? DiscountType { get; set; } public decimal? DiscountValue { get; set; } public decimal? DiscountPercentage { get; set; } public DateTime? StartDate { get; set; } public DateTime? EndDate { get; set; } public bool? IsFeatured { get; set; } public bool IsActive { get; set; } = true; public bool IsPublic { get; set; } = false; public int? MaxUses { get; set; } public ICollection Products { get; set; } = new List(); public DateTime CreatedAt { get; set; } = DateTime.UtcNow; public DateTime UpdatedAt { get; set; } = DateTime.UtcNow; public long? BannerImageId { get; set; } [ForeignKey("BannerImageId")] public FileModel? BannerImage { get; set; } } }