Files
ember-market-frontend/models/products.ts
2025-07-17 16:11:49 +01:00

18 lines
468 B
TypeScript

export interface Product {
_id?: string;
name: string;
description: string;
unitType: 'pcs' | 'gr' | 'kg' | 'ml' | 'oz' | 'lb';
category: string;
enabled?: boolean;
// Stock management fields
stockTracking?: boolean;
currentStock?: number;
lowStockThreshold?: number;
stockStatus?: 'in_stock' | 'low_stock' | 'out_of_stock';
pricing: Array<{
minQuantity: number;
pricePerUnit: number;
}>;
image?: string | File | null | undefined;
}