import type { ServingUnit } from '../enums/product.enums.js';

/**
 * Historical transaction capturing store product pricing
 */
export interface PriceRecord {
  id: string;
  householdId: string;
  productId: string;
  productName: string; // Denormalized for quick display
  storeId: string;
  storeName: string; // Denormalized for quick display
  price: number;
  currency: string;
  quantity: number;
  unit: ServingUnit;
  pricePerUnit: number; // price / quantity (computed/normalized value)
  date: Date;
  receiptImageUrl?: string;
  notes?: string;
  createdBy: string;
  createdAt: Date;
}
