Files
eventmaster/software/backend/models/acts/genre.model.ts
2024-10-12 19:40:12 +02:00

15 lines
332 B
TypeScript

import { BelongsToMany, Column, Model, Table } from "sequelize-typescript";
import { Band } from "./band.model";
import { BandGenre } from "./bandGenre.model";
@Table({ timestamps: false })
export class Genre extends Model {
@Column
name: string
// Relations
@BelongsToMany(() => Band, () => BandGenre)
bands: Band[]
}