export interface Package {
  id: number;
  name: string;
  description: string;
  price: number;
  currency: string;
  duration_days: number;
  features: string[];
  is_active: boolean;
  subjects?: number[];
}

export interface Payment {
  id: number;
  user_id: number;
  user_name: string;
  package_id: number;
  package_name: string;
  amount: number;
  currency: string;
  provider: "stripe" | "paypal" | "paymob";
  status: "pending" | "completed" | "failed" | "refunded";
  created_at: string;
  transaction_id?: string;
}

export interface Discount {
  id: number;
  code: string;
  percentage: number;
  max_uses: number;
  used_count: number;
  valid_from: string;
  valid_to: string;
  is_active: boolean;
}
