src/app/Restaurant.ts
Properties |
_id |
_id:
|
Type : string
|
menuItems |
menuItems:
|
Type : MenuItem[]
|
Optional |
name |
name:
|
Type : string
|
owner |
owner:
|
Type : string
|
user |
user:
|
Type : string
|
export interface MenuItem {
_id: string;
name: string;
price: number;
quantity: number;
}
export interface Restaurant {
_id: string;
name: string;
owner: string;
user: string;
menuItems?: MenuItem[]; // Add the menuItems property as an optional array of MenuItem
}