Filterable tours
This commit is contained in:
19
software/src/data/models/acts/bandModel.ts
Normal file
19
software/src/data/models/acts/bandModel.ts
Normal 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
|
||||
}>
|
||||
}
|
||||
12
software/src/data/models/acts/cityModel.ts
Normal file
12
software/src/data/models/acts/cityModel.ts
Normal 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
|
||||
}>
|
||||
}
|
||||
9
software/src/data/models/acts/concertModel.ts
Normal file
9
software/src/data/models/acts/concertModel.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { LocationModel } from "./locationModel"
|
||||
|
||||
export class ConcertModel {
|
||||
id: number
|
||||
inStock: number
|
||||
date: string
|
||||
price: number
|
||||
location: LocationModel
|
||||
}
|
||||
14
software/src/data/models/acts/genreModel.ts
Normal file
14
software/src/data/models/acts/genreModel.ts
Normal 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>
|
||||
}
|
||||
>
|
||||
}
|
||||
10
software/src/data/models/acts/locationModel.ts
Normal file
10
software/src/data/models/acts/locationModel.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export class LocationModel {
|
||||
id: number
|
||||
name: string
|
||||
address: string
|
||||
image: string
|
||||
city: {
|
||||
name: string
|
||||
country: string
|
||||
}
|
||||
}
|
||||
7
software/src/data/models/acts/ratingModel.ts
Normal file
7
software/src/data/models/acts/ratingModel.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { BandModel } from "./bandModel"
|
||||
|
||||
export class RatingModel {
|
||||
id: number
|
||||
rating: number
|
||||
band: BandModel
|
||||
}
|
||||
11
software/src/data/models/acts/tourModel.ts
Normal file
11
software/src/data/models/acts/tourModel.ts
Normal 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>
|
||||
}
|
||||
Reference in New Issue
Block a user