// [] database.js const { Sequelize } = require("sequelize"); module.exports.sequelize = new Sequelize({ dialect: 'sqlite', storage: 'database.sqlite' });
// [] main.js const {sequelize} = require('./database'); try { sequelize.authenticate(); console.log('Connection has been established successfully.'); } catch (error) { console.error('Unable to connect to the database:', error); }