Rewriting database and API to transform to a ticket shop

This commit is contained in:
2024-09-26 11:04:27 +02:00
parent d36dbced8e
commit da98fc73c0
88 changed files with 1040 additions and 751 deletions

View File

@@ -0,0 +1,21 @@
import { BelongsTo, Column, ForeignKey, Model, Table } from "sequelize-typescript";
import { Band } from "./band.model";
@Table({ timestamps: false })
export class Member extends Model {
@Column
name: String
@ForeignKey(() => Band)
@Column
bandId: Number
@Column
image: String
// Relations
@BelongsTo(() => Band)
bands: Band[]
}