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