2022-02-28 13:51:11 +00:00
|
|
|
import {
|
|
|
|
Table,
|
|
|
|
AutoIncrement,
|
|
|
|
Column,
|
|
|
|
CreatedAt,
|
|
|
|
UpdatedAt,
|
|
|
|
Model,
|
|
|
|
PrimaryKey,
|
|
|
|
HasMany
|
|
|
|
} from "sequelize-typescript";
|
|
|
|
|
|
|
|
import SchedulingNotify from "./SchedulingNotify";
|
2024-03-27 15:02:11 +00:00
|
|
|
import Ticket from "./Ticket"
|
2022-02-28 13:51:11 +00:00
|
|
|
|
|
|
|
@Table
|
2022-03-23 02:59:01 +00:00
|
|
|
class StatusChatEnd extends Model<StatusChatEnd> {
|
2022-02-28 13:51:11 +00:00
|
|
|
@PrimaryKey
|
|
|
|
@AutoIncrement
|
|
|
|
@Column
|
2024-03-27 15:02:11 +00:00
|
|
|
id: number;
|
|
|
|
|
2022-02-28 13:51:11 +00:00
|
|
|
@Column
|
|
|
|
name: string;
|
2024-03-27 15:02:11 +00:00
|
|
|
|
2022-02-28 13:51:11 +00:00
|
|
|
@CreatedAt
|
|
|
|
createdAt: Date;
|
2024-03-27 15:02:11 +00:00
|
|
|
|
2022-02-28 13:51:11 +00:00
|
|
|
@UpdatedAt
|
|
|
|
updatedAt: Date;
|
|
|
|
|
|
|
|
@HasMany(() => SchedulingNotify)
|
|
|
|
SchedulingNotifies: SchedulingNotify[];
|
2024-03-27 15:02:11 +00:00
|
|
|
|
|
|
|
@HasMany(() => Ticket)
|
|
|
|
tickets: Ticket[];
|
2022-02-28 13:51:11 +00:00
|
|
|
}
|
|
|
|
|
2022-03-23 02:59:01 +00:00
|
|
|
export default StatusChatEnd;
|
2022-02-28 13:51:11 +00:00
|
|
|
|