Display all bands grouped by genre, create m:n association between Band and Genre in database

This commit is contained in:
2024-09-27 23:25:24 +02:00
parent 513c73c5c1
commit 8d0b141217
29 changed files with 275 additions and 165 deletions

View File

@@ -16,6 +16,7 @@ import { Member } from "./models/acts/member.model"
import { Rating } from "./models/acts/rating.model"
import { Tour } from "./models/acts/tour.model"
import { City } from "./models/acts/city.model"
import { BandGenre } from "./models/acts/bandGenre.model"
const dbName = "database"
const dbUser = "root"
@@ -30,7 +31,7 @@ export const sequelize = new Sequelize({
storage: "database.sqlite",
models: [
AccountRole, Account, Payment, Address,
City, Location, Genre, Band, Rating, Member, Tour, Show,
City, Location, Genre, Band, BandGenre, Rating, Member, Tour, Show,
Order, OrderItem
]
})