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