Adding Seat plan component and database tables

This commit is contained in:
2024-10-01 15:37:08 +02:00
parent d6997229c4
commit bd53b8edfc
33 changed files with 880 additions and 204 deletions

View File

@@ -1,4 +1,4 @@
import { LocationModel } from "./locationModel"
import { LocationModel } from "./../locations/locationModel"
export class ConcertModel {
id: number

View File

@@ -1,3 +1,5 @@
import { SeatGroupModel } from "./seatGroupModel"
/**
* Replica of the API endpoint /locations
*/
@@ -6,6 +8,7 @@ export class LocationModel {
name: string
address: string
image: string
seatSchema: string
city: {
name: string
country: string
@@ -22,4 +25,5 @@ export class LocationModel {
bandName: string
}
}>
seatGroups: Array<SeatGroupModel>
}

View File

@@ -0,0 +1,9 @@
import { SeatRowModel } from "./seatRowModel"
export class SeatGroupModel {
name: string
surcharge: number
standingArea: Boolean
capacity: number
seatRows: Array<SeatRowModel>
}

View File

@@ -0,0 +1,4 @@
export class SeatModel {
id: number
seatNr: string
}

View File

@@ -0,0 +1,6 @@
import { SeatModel } from "./seatModel"
export class SeatRowModel {
row: number
seats: Array<SeatModel>
}