From 51d999d3c0c2d3e892620a34b1397c3452d60455 Mon Sep 17 00:00:00 2001 From: Yasmim Rosa <mimsayrosa@gmail.com> Date: Wed, 13 Dec 2023 19:18:22 -0300 Subject: [PATCH] vercel.json --- backend/models/schemas/index.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/backend/models/schemas/index.js b/backend/models/schemas/index.js index ad69046b..d67677b2 100644 --- a/backend/models/schemas/index.js +++ b/backend/models/schemas/index.js @@ -8,8 +8,17 @@ const basename = path.basename(__filename); const config = require(__dirname + '/../../config/config.js'); const db = {}; -let sequelize = new Sequelize(config.database, config.username, config.password, {config, dialect: 'mysql2', -dialectModule: require('mysql2')}); +const sequelize = new Sequelize( + 'matriculai', + 'root', + 'banco', + { + host: '104.154.26.234', + dialect: 'mysql', + dialectModule: require('mysql2')// Por exemplo, 'mysql', 'postgres', 'sqlite', etc. + // Outras opções, se necessário + } +); fs