first commit

This commit is contained in:
2024-06-03 18:43:35 +02:00
parent 2da01a3f6e
commit f501d519af
883 changed files with 71550 additions and 2 deletions

View File

@ -0,0 +1,18 @@
// Creating new Object of Sequelize
const sequelize = new Sequelize(
process.env.MYSQL_DATABASE,
process.env.MYSQL_USER,
process.env.MYSQL_PASSWORD, {
// Explicitly specifying
// mysql database
dialect: 'mariadb',
// By default host is 'localhost'
host: 'db'
}
);
// Exporting the sequelize object.
// We can use it in another file
// for creating models
module.exports = sequelize