From e36d82e472803c5bb2d712ce5b900898efe4e283 Mon Sep 17 00:00:00 2001 From: viastolfi Date: Tue, 13 Aug 2024 19:43:31 +0200 Subject: [PATCH] rename directory --- database.js | 16 +--------------- {businesses => models}/Case.js | 0 {businesses => models}/Grid.js | 0 {businesses => models}/Piece.js | 0 {businesses => models}/Player.js | 0 {businesses => models}/Room.js | 0 6 files changed, 1 insertion(+), 15 deletions(-) rename {businesses => models}/Case.js (100%) rename {businesses => models}/Grid.js (100%) rename {businesses => models}/Piece.js (100%) rename {businesses => models}/Player.js (100%) rename {businesses => models}/Room.js (100%) diff --git a/database.js b/database.js index e130946..aea1bcf 100644 --- a/database.js +++ b/database.js @@ -7,18 +7,4 @@ const connection = mysql.createPool({ database: process.env.DB_NAME }); -/* -connection.connect((err) => { - if (err) { - console.error('Error connecting to the database:', err); - return; - } - console.log('Connected to the MySQL database'); -}); -*/ - -module.exports = connection; - -// TODO -// Change how i insert in my db so player1 = player1Win -// Maybe store the players positions in the database directly in the room object +module.exports = connection; \ No newline at end of file diff --git a/businesses/Case.js b/models/Case.js similarity index 100% rename from businesses/Case.js rename to models/Case.js diff --git a/businesses/Grid.js b/models/Grid.js similarity index 100% rename from businesses/Grid.js rename to models/Grid.js diff --git a/businesses/Piece.js b/models/Piece.js similarity index 100% rename from businesses/Piece.js rename to models/Piece.js diff --git a/businesses/Player.js b/models/Player.js similarity index 100% rename from businesses/Player.js rename to models/Player.js diff --git a/businesses/Room.js b/models/Room.js similarity index 100% rename from businesses/Room.js rename to models/Room.js