Move software files one directory up, Readme
This commit is contained in:
15
backend/models/acts/genre.model.ts
Normal file
15
backend/models/acts/genre.model.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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[]
|
||||
}
|
||||
Reference in New Issue
Block a user