import type { PurchaseStatus } from '../enums/purchase.enums.js';

export interface PurchaseItem {
  id: string;
  medicineProductId?: string;
  medicineId?: string;
  foodProductId?: string;
  name: string;
  quantity: number;
  unit: string;
  actualPrice?: number;
  currency?: string;
  priceRecordId?: string;
  addedToCabinet: boolean;
}

export interface Purchase {
  id: string;
  householdId: string;
  storeId: string;
  storeName: string;
  status: PurchaseStatus;
  items: PurchaseItem[];
  notes?: string;
  purchasedAt: Date;
  receivedAt?: Date;
  createdBy: string;
  createdAt: Date;
  updatedAt: Date;
}
