Initial food blog app
This commit is contained in:
21
app/types/index.ts
Normal file
21
app/types/index.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
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[]
|
||||
}
|
||||
Reference in New Issue
Block a user