import { Table, AutoIncrement, Column, CreatedAt, UpdatedAt, Model, PrimaryKey, HasMany } from "sequelize-typescript"; import SchedulingNotify from "./SchedulingNotify"; @Table class StatusChatEnd extends Model { @PrimaryKey @AutoIncrement @Column id: number; @Column name: string; @CreatedAt createdAt: Date; @UpdatedAt updatedAt: Date; @HasMany(() => SchedulingNotify) SchedulingNotifies: SchedulingNotify[]; } export default StatusChatEnd;