New page for all concerts

This commit is contained in:
2024-10-12 19:40:12 +02:00
parent 3204e4a658
commit 60a9cea147
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