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

@@ -9,7 +9,7 @@ import { Member } from '../models/acts/member.model'
import { Genre } from '../models/acts/genre.model'
import { Band } from '../models/acts/band.model'
import { Location } from '../models/acts/location.model'
import { Show } from '../models/acts/show.model'
import { Concert } from '../models/acts/concert.model'
import { Tour } from '../models/acts/tour.model'
import { City } from '../models/acts/city.model'
import { BandGenre } from '../models/acts/bandGenre.model'
@@ -36,7 +36,7 @@ export function deleteAllTables() {
Genre.destroy({ truncate: true })
Band.destroy({ truncate: true })
Location.destroy({ truncate: true })
Show.destroy({ truncate: true })
Concert.destroy({ truncate: true })
Address.destroy({ truncate: true })
Payment.destroy({ truncate: true })
@@ -90,8 +90,8 @@ export async function prepopulateDatabase() {
for (let tour of tours.data) {
await Tour.create(tour)
.then(async dataset => {
for (let show of tour.shows) {
await Show.create(show)
for (let concert of tour.concerts) {
await Concert.create(concert)
}
})
}