namespace SIGCM.Domain.Entities;

public class Coupon
{
    public int Id { get; set; }
    public required string Code { get; set; }
    public required string DiscountType { get; set; } // "Percentage", "Fixed"
    public decimal DiscountValue { get; set; }
    public DateTime? ExpiryDate { get; set; }
    public int UsageCount { get; set; }
    public int? MaxUsages { get; set; }
    public int? MaxUsagesPerUser { get; set; } // New: Limit per user
    public bool IsActive { get; set; } = true;
    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}
