diff --git a/migrations/20231115141235-add-lastPasswordChangedAt-to-users.js b/migrations/20231115141235-add-lastPasswordChangedAt-to-users.js new file mode 100644 index 00000000..6a06d6e5 --- /dev/null +++ b/migrations/20231115141235-add-lastPasswordChangedAt-to-users.js @@ -0,0 +1,16 @@ +'use strict'; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.addColumn('users', 'last_password_changed_at', { + type: Sequelize.DATE, + allowNull: true, + defaultValue: null, + }); + }, + + async down(queryInterface) { + await queryInterface.removeColumn('users', 'last_password_changed_at'); + }, +};