add modified function login and add new function logout

This commit is contained in:
unknown 2025-06-09 15:08:40 +07:00
parent 72dd0a13a2
commit 98b1df4f12
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ const { sequelize } = require('../models');
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.createTable('Users', {
await queryInterface.createTable('users', {
id: {
allowNull: false,
autoIncrement: true,
@ -36,6 +36,6 @@ module.exports = {
});
},
async down(queryInterface, Sequelize) {
await queryInterface.dropTable('Users');
await queryInterface.dropTable('users');
}
};