Display concerts with card views on "All concerts" page, adding image property for tours

This commit is contained in:
2024-09-28 21:18:25 +02:00
parent 9b325c849e
commit 4bcc2b86d5
49 changed files with 454 additions and 219 deletions

View File

@@ -1,5 +1,5 @@
import { Model, BelongsTo, Column, ForeignKey, HasMany, HasOne, Table } from "sequelize-typescript";
import { Show } from "../acts/show.model";
import { Concert } from "../acts/concert.model";
import { Order } from "./order.model";
@Table({ timestamps: false })
@@ -15,7 +15,7 @@ export class OrderItem extends Model {
orderPrice: number
@Column
@ForeignKey(() => Show)
@ForeignKey(() => Concert)
showId: number
@@ -23,6 +23,6 @@ export class OrderItem extends Model {
@BelongsTo(() => Order)
order: Order
@BelongsTo(() => Show)
product: Show
@BelongsTo(() => Concert)
product: Concert
}