import { AdminOrder } from '../../orders/models/admin-order.model';

/**
 * A customer is not its own stored entity - it's derived by grouping existing
 * AdminOrder records by customer.email, since no customer gateway/backend exists.
 * Every field here is a real aggregate over that customer's orders, never fabricated.
 */
export interface AdminCustomer {
  email: string;
  name: string;
  phone: string;
  orderCount: number;
  totalSpent: number;
  currency: string;
  firstOrderAt: string;
  lastOrderAt: string;
  addresses: string[];
  orders: AdminOrder[];
}
