add modified function login and add new function logout
This commit is contained in:
parent
72dd0a13a2
commit
98b1df4f12
|
@ -5,7 +5,7 @@ const { sequelize } = require('../models');
|
||||||
/** @type {import('sequelize-cli').Migration} */
|
/** @type {import('sequelize-cli').Migration} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
async up(queryInterface, Sequelize) {
|
async up(queryInterface, Sequelize) {
|
||||||
await queryInterface.createTable('Users', {
|
await queryInterface.createTable('users', {
|
||||||
id: {
|
id: {
|
||||||
allowNull: false,
|
allowNull: false,
|
||||||
autoIncrement: true,
|
autoIncrement: true,
|
||||||
|
@ -36,6 +36,6 @@ module.exports = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async down(queryInterface, Sequelize) {
|
async down(queryInterface, Sequelize) {
|
||||||
await queryInterface.dropTable('Users');
|
await queryInterface.dropTable('users');
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in New Issue