33 lines
498 B
TypeScript
33 lines
498 B
TypeScript
export interface Store {
|
|
business_id: string,
|
|
businesses: string
|
|
}
|
|
|
|
// why: because type completion is going to matter later on
|
|
export enum ProductType {
|
|
service,
|
|
good
|
|
}
|
|
export enum ProductUnitType {
|
|
item,
|
|
weight,
|
|
hour,
|
|
volume,
|
|
}
|
|
|
|
export interface Product {
|
|
id: string,
|
|
|
|
business_id: string, // references the business_id in a Store entry
|
|
|
|
product_name: string,
|
|
product_type: ProductType,
|
|
|
|
price: number,
|
|
currency: string, // will likely just be USD for now
|
|
|
|
unit_type: UnitType
|
|
}
|
|
|
|
|