22 lines
371 B
TypeScript
22 lines
371 B
TypeScript
export interface Visit {
|
|
id: string
|
|
date: string // ISO
|
|
dishes: string[]
|
|
rating: number // 1-10
|
|
notes: string
|
|
price_paid?: number // optional, in EUR
|
|
}
|
|
|
|
export interface Restaurant {
|
|
id: string
|
|
name: string
|
|
city: string
|
|
country: string
|
|
address: string
|
|
lat: number
|
|
lng: number
|
|
cuisine: string[]
|
|
price_range: 1 | 2 | 3 | 4
|
|
visits: Visit[]
|
|
}
|