Move software files one directory up, Readme
This commit is contained in:
16
backend/models/acts/bandGenre.model.ts
Normal file
16
backend/models/acts/bandGenre.model.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Column, ForeignKey, Model, PrimaryKey, Table } from "sequelize-typescript";
|
||||
import { Genre } from "./genre.model";
|
||||
import { Band } from "./band.model";
|
||||
|
||||
@Table({ timestamps: false })
|
||||
export class BandGenre extends Model {
|
||||
@PrimaryKey
|
||||
@Column({autoIncrement: true})
|
||||
declare id: number
|
||||
|
||||
@ForeignKey(() => Genre)
|
||||
genreId: number
|
||||
|
||||
@ForeignKey(() => Band)
|
||||
bandId: number
|
||||
}
|
||||
Reference in New Issue
Block a user