Versão beta par aprodução do ansata

adriano 2023-04-27 10:17:57 -03:00
parent b08fbbf56f
commit e6c7a298c4
1 changed files with 15 additions and 0 deletions

View File

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