feat: start delete whatsapp messages backend

This commit is contained in:
canove
2020-09-27 20:10:52 -03:00
parent 6f3c71570d
commit 2e1785ea15
8 changed files with 138 additions and 10 deletions

View File

@@ -0,0 +1,15 @@
import { QueryInterface, DataTypes } from "sequelize";
module.exports = {
up: (queryInterface: QueryInterface) => {
return queryInterface.addColumn("Messages", "isDeleted", {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: false
});
},
down: (queryInterface: QueryInterface) => {
return queryInterface.removeColumn("Messages", "isDeleted");
}
};