initial flow of sending email

This commit is contained in:
Arjun Patel
2019-05-13 00:08:34 -07:00
parent 301190e20c
commit c4dd7cd1fa
5 changed files with 171 additions and 2 deletions
@@ -0,0 +1,30 @@
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('password_reset', {
code: {
type: Sequelize.STRING,
allowNull: false
},
user_id: {
type: Sequelize.UUID,
allowNull: false
},
user_type: {
type: Sequelize.STRING,
allowNull: false
},
created_at: {
allowNull: false,
type: Sequelize.DATE
},
updated_at: {
allowNull: false,
type: Sequelize.DATE
}
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('password_reset');
}
};