Adding Seat plan component and database tables

This commit is contained in:
2024-10-01 15:37:08 +02:00
parent d6997229c4
commit bd53b8edfc
33 changed files with 880 additions and 204 deletions

View File

@@ -0,0 +1,18 @@
import { BelongsTo, Column, ForeignKey, Model, Table } from "sequelize-typescript";
import { SeatRow } from "./seatRow.model";
@Table({ timestamps: false })
export class Seat extends Model {
@Column
seatNr: number
@ForeignKey(() => SeatRow)
@Column
seatRowId: Number
// Relations
@BelongsTo(() => SeatRow)
seatRow: SeatRow
}