From 98b1df4f129cd1f3d119d01176b9c4c47deb043d Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 9 Jun 2025 15:08:40 +0700 Subject: [PATCH] add modified function login and add new function logout --- backend/migrations/20250318035832-create-user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/migrations/20250318035832-create-user.js b/backend/migrations/20250318035832-create-user.js index e33456c..4b7e50b 100644 --- a/backend/migrations/20250318035832-create-user.js +++ b/backend/migrations/20250318035832-create-user.js @@ -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'); } }; \ No newline at end of file