Filterable tours

This commit is contained in:
2024-09-29 14:28:29 +02:00
parent 0616409f14
commit a6ca7eedde
36 changed files with 265 additions and 114 deletions

View File

@@ -0,0 +1,19 @@
import { RatingModel } from "./ratingModel"
export class BandModel {
id: number
name: string
foundingYear: number
descriptionEn: string
descriptionDe: string
images: Array<string>
logo: string
ratings: Array<RatingModel>
members: Array<{
name: string,
image: string
}>
genres: Array<{
name: string
}>
}

View File

@@ -0,0 +1,12 @@
export class CityModel {
id: number
name: string
country: string
image: string
locations: Array<{
id: number
name: string
address: string
image: string
}>
}

View File

@@ -0,0 +1,9 @@
import { LocationModel } from "./locationModel"
export class ConcertModel {
id: number
inStock: number
date: string
price: number
location: LocationModel
}

View File

@@ -0,0 +1,14 @@
import { RatingModel } from "./ratingModel"
export class GenreModel {
id: number
name: string
bands: Array<
{
name: string
images: Array<string>
logo: string
ratings: Array<RatingModel>
}
>
}

View File

@@ -0,0 +1,10 @@
export class LocationModel {
id: number
name: string
address: string
image: string
city: {
name: string
country: string
}
}

View File

@@ -0,0 +1,7 @@
import { BandModel } from "./bandModel"
export class RatingModel {
id: number
rating: number
band: BandModel
}

View File

@@ -0,0 +1,11 @@
import { BandModel } from "./bandModel"
import { ConcertModel } from "./concertModel"
export class TourModel {
id: number
name: string
offered: boolean
band: BandModel
image: string
concerts: Array<ConcertModel>
}