From 9641651bccc6d2dcbb2856bd2a30e2364d09af61 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Sat, 20 Sep 2025 23:34:24 +0200 Subject: [PATCH] Fix jwt-token --- server/scripts/setup-database.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/server/scripts/setup-database.js b/server/scripts/setup-database.js index 32a45b4..33e5b97 100644 --- a/server/scripts/setup-database.js +++ b/server/scripts/setup-database.js @@ -1,10 +1,5 @@ const { Sequelize } = re // Models are already initialized through the imports - console.log('📋 Models loaded and ready...'); - - // For fresh database, just sync to create tables first - console.log('🏗️ Creating database tables...'); - await sequelize.sync({ force: true }); // WARNING: This will drop existing tables - console.log('✅ Database tables created successfully.\n');sequelize'); + console.log('📋 Models loaded and ready...');ire('sequelize'); const bcrypt = require('bcryptjs'); // Import models from the main models index