feat: handle group messages

This commit is contained in:
canove
2020-09-30 19:16:31 -03:00
parent 3a777dec39
commit 4c67067d8f
15 changed files with 138 additions and 68 deletions

View File

@@ -37,6 +37,10 @@ class Contact extends Model<Contact> {
@Column
profilePicUrl: string;
@Default(false)
@Column
isGroup: boolean;
@CreatedAt
createdAt: Date;

View File

@@ -11,7 +11,8 @@ import {
HasMany,
AutoIncrement,
AfterFind,
BeforeUpdate
BeforeUpdate,
Default
} from "sequelize-typescript";
import Contact from "./Contact";
@@ -35,6 +36,10 @@ class Ticket extends Model<Ticket> {
@Column
lastMessage: string;
@Default(false)
@Column
isGroup: boolean;
@CreatedAt
createdAt: Date;