Move software files one directory up, Readme

This commit is contained in:
2024-11-19 16:51:28 +01:00
parent baf763c4cb
commit 1dc5740f03
329 changed files with 255 additions and 31 deletions

View File

@@ -0,0 +1,22 @@
import { BelongsTo, Column, ForeignKey, HasMany, Model, Table } from "sequelize-typescript";
import { SeatGroup } from "./seatGroup.model";
import { Seat } from "./seat.model";
@Table({ timestamps: false })
export class SeatRow extends Model {
@Column
row: number
@ForeignKey(() => SeatGroup)
@Column
seatGroupId: number
// Relations
@BelongsTo(() => SeatGroup)
seatGroup: SeatGroup
@HasMany(() => Seat)
seats: Seat[]
}