feat: checking for whatsapp session Id on ticket and message creation

This commit is contained in:
canove
2020-09-06 14:22:05 -03:00
parent 371477aa98
commit b793d28e60
7 changed files with 60 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
"use strict";
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addColumn("Tickets", "whatsappId", {
type: Sequelize.INTEGER,
references: { model: "Whatsapps", key: "id" },
onUpdate: "CASCADE",
onDelete: "SET NULL",
});
},
down: queryInterface => {
return queryInterface.removeColumn("Tickets", "whatsappId");
},
};