import { Model, Table, Column, DataType } from "sequelize-typescript"; import Hotel from "./hotel.model.ts"; import Booking from "./booking.model.ts"; @Table({ tableName: "Client", }) export default class Client extends Model { @Unique @Column({ primaryKey: true, autoIncrement: true, field: "id" }) id: number; @Column({ field: "Name" }) name: string; @Column({ field: "Address" }) address: string; @Column({ field: "Phone" }) phone: string; @CreatedAt createdDate: Date; @HasMany(() => Booking) bookings: Booking[]; }