Add ToursTable, update API documentation
This commit is contained in:
14
software/backend/models/acts/genre.model.ts
Normal file
14
software/backend/models/acts/genre.model.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Column, HasMany, Model, Table } from "sequelize-typescript";
|
||||
import { Band } from "./band.model";
|
||||
|
||||
@Table({ timestamps: false })
|
||||
export class Genre extends Model {
|
||||
@Column
|
||||
name: String
|
||||
|
||||
|
||||
// Relations
|
||||
|
||||
@HasMany(() => Band)
|
||||
bands: Band[]
|
||||
}
|
||||
Reference in New Issue
Block a user