Adding Seat plan component and database tables
This commit is contained in:
29
software/src/data/models/locations/locationModel.ts
Normal file
29
software/src/data/models/locations/locationModel.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { SeatGroupModel } from "./seatGroupModel"
|
||||
|
||||
/**
|
||||
* Replica of the API endpoint /locations
|
||||
*/
|
||||
export class LocationModel {
|
||||
id: number
|
||||
name: string
|
||||
address: string
|
||||
image: string
|
||||
seatSchema: string
|
||||
city: {
|
||||
name: string
|
||||
country: string
|
||||
}
|
||||
concerts: Array<{
|
||||
id: number
|
||||
date: string
|
||||
price: number
|
||||
inStock: number
|
||||
tour: {
|
||||
name: string
|
||||
offered: boolean
|
||||
image: string
|
||||
bandName: string
|
||||
}
|
||||
}>
|
||||
seatGroups: Array<SeatGroupModel>
|
||||
}
|
||||
Reference in New Issue
Block a user