New page for all concerts

This commit is contained in:
2024-10-12 19:40:12 +02:00
parent f8bdb54c33
commit 6c33de3d87
56 changed files with 531 additions and 405 deletions

View File

@@ -8,16 +8,16 @@ import { Concert } from "./concert.model";
@Table({ timestamps: false })
export class Band extends Model {
@Column
name: String
name: string
@Column
foundingYear: Number
foundingYear: number
@Column
descriptionEn: String
descriptionEn: string
@Column
descriptionDe: String
descriptionDe: string
@Column({
type: DataType.STRING,
@@ -28,13 +28,13 @@ export class Band extends Model {
this.setDataValue('images', value.join(';'))
}
})
images: Array<String>
images: Array<string>
@Column
imageMembers: String
imageMembers: string
@Column
logo: String
logo: string
// Relations

View File

@@ -6,34 +6,37 @@ import { Band } from "./band.model";
@Table({ timestamps: false })
export class Concert extends Model {
@Column
date: String
date: string
@Column
name: String
name: string
@Column
price: Number
price: number
@Column
image: String
image: string
@Column
inStock: Number
inStock: number
@Column
offered: Boolean
offered: boolean
@ForeignKey(() => Band)
@Column
bandId: Number
bandId: number
@ForeignKey(() => Location)
@Column
locationId: Number
locationId: number
// Relations
@BelongsTo(() => Band)
band: Band
@BelongsTo(() => Location)
location: Location

View File

@@ -5,7 +5,7 @@ import { BandGenre } from "./bandGenre.model";
@Table({ timestamps: false })
export class Genre extends Model {
@Column
name: String
name: string
// Relations

View File

@@ -4,14 +4,14 @@ import { Band } from "./band.model";
@Table({ timestamps: false })
export class Member extends Model {
@Column
name: String
name: string
@ForeignKey(() => Band)
@Column
bandId: Number
bandId: number
@Column
image: String
image: string
// Relations

View File

@@ -7,14 +7,14 @@ export class Rating extends Model {
@ForeignKey(() => Account)
@Column
accountId: Number
accountId: number
@Column
rating: Number
rating: number
@ForeignKey(() => Band)
@Column
bandId: Number
bandId: number
// Relations

View File

@@ -4,26 +4,26 @@ import { ExerciseGroup } from "./exerciseGroup.model";
@Table({ timestamps: false })
export class Exercise extends Model {
@Column
nameDe: String
nameDe: string
@Column
nameEn: String
nameEn: string
@Column
exerciseNr: Number
exerciseNr: number
@Column
descriptionDe: String
descriptionDe: string
@Column
descriptionEn: String
descriptionEn: string
@Column
solved: Boolean
solved: boolean
@ForeignKey(() => ExerciseGroup)
@Column
exerciseGroupId: Number
exerciseGroupId: number
// Relations

View File

@@ -4,13 +4,13 @@ import { Exercise } from "./exercise.model";
@Table({ timestamps: false })
export class ExerciseGroup extends Model {
@Column
nameDe: String
nameDe: string
@Column
nameEn: String
nameEn: string
@Column
groupNr: Number
groupNr: number
// Relations

View File

@@ -4,10 +4,10 @@ import { Location } from "./location.model";
@Table({ timestamps: false })
export class City extends Model {
@Column
name: String
name: string
@Column
country: String
country: string
// Relations

View File

@@ -9,20 +9,20 @@ export class Location extends Model {
urlName: string
@Column
name: String
name: string
@Column
address: String
address: string
@ForeignKey(() => City)
@Column
cityId: Number
cityId: number
@Column
imageIndoor: String
imageIndoor: string
@Column
imageOutdoor: String
imageOutdoor: string
/**
* Layout identifier of the location
@@ -31,7 +31,7 @@ export class Location extends Model {
* 3 = Stage in the middle of the stay area, seat places all around
*/
@Column
layout: Number
layout: number
// Relations

View File

@@ -9,7 +9,7 @@ export class Seat extends Model {
@ForeignKey(() => SeatRow)
@Column
seatRowId: Number
seatRowId: number
// Relations

View File

@@ -5,21 +5,21 @@ import { SeatRow } from "./seatRow.model";
@Table({ timestamps: false })
export class SeatGroup extends Model {
@Column
name: String
name: string
@Column
surcharge: Number
surcharge: number
@Column
capacity: Number
capacity: number
@Default(false)
@Column
standingArea: Boolean
standingArea: boolean
@ForeignKey(() => Location)
@Column
locationId: Number
locationId: number
// Relations