import { ObjectId } from 'mongodb'; import { BaseModel } from './baseModel'; import { Customer } from './customer'; import { SKU } from './sku'; export interface LostSale extends BaseModel { date: Date; customer: Customer | ObjectId; city: string; items: LostSaleItem[]; comments?: string; account?: string; } export interface LostSaleItem extends BaseModel { lostSale: LostSale | ObjectId; date: Date; customer: Customer | ObjectId; city: string; sku: SKU | ObjectId; reason: string; quantity?: number; }