// MongoDB Coupon Model Schema
export interface Coupon {
  _id?: string;
  code: string; // Coupon code (e.g., "SUMMER50")
  type: string; // "percentage" or "fixed"
  value: number; // Discount value
  minPurchase?: number; // Minimum purchase amount
  maxDiscount?: number; // Maximum discount amount (for percentage)
  usageLimit?: number; // Total usage limit
  usedCount: number; // Current usage count
  userLimit?: number; // Usage limit per user
  validFrom: Date; // Start date
  validUntil: Date; // End date
  active: boolean;
  applicableCategories?: string[]; // Category IDs
  applicableProducts?: string[]; // Product IDs
  createdAt?: Date;
  updatedAt?: Date;
}

