Fix jwt-token
This commit is contained in:
@@ -1,10 +1,5 @@
|
|||||||
const { Sequelize } = re // Models are already initialized through the imports
|
const { Sequelize } = re // Models are already initialized through the imports
|
||||||
console.log('📋 Models loaded and ready...');
|
console.log('📋 Models loaded and ready...');ire('sequelize');
|
||||||
|
|
||||||
// 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');
|
|
||||||
const bcrypt = require('bcryptjs');
|
const bcrypt = require('bcryptjs');
|
||||||
|
|
||||||
// Import models from the main models index
|
// Import models from the main models index
|
||||||
|
|||||||
Reference in New Issue
Block a user