begin sequelize

This commit is contained in:
eneller
2026-03-06 10:24:47 +01:00
parent fb0fc59240
commit d58b0babd2
7 changed files with 133 additions and 7 deletions

View File

@@ -22,14 +22,17 @@
"express": "^5.2.1",
"pg": "^8.20.0",
"pg-hstore": "^2.3.4",
"reflect-metadata": "^0.2.2",
"sequelize": "^6.37.7",
"sequelize-typescript": "^2.1.6",
"winston": "^3.19.0"
},
"devDependencies": {
"@types/cors": "^2.8.19",
"@types/express": "^5.0.6",
"@types/node": "^25.3.2",
"@types/node": "^25.3.5",
"@types/pg": "^8.16.0",
"@types/validator": "^13.15.10",
"concurrently": "^9.2.1",
"eslint": "^10.0.2",
"nodemon": "^3.1.14",

View File

@@ -25,7 +25,7 @@ const db = new Sequelize({
database: process.env.DB_NAME || 'postgres',
username: process.env.DB_USER || 'postgres',
password: process.env.DB_PASSWORD || 'pass',
logging: false, // Disable logging in production
logging: logger.debug.bind(logger),
});
// Test the connection

View File

@@ -5,6 +5,8 @@
"esModuleInterop": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"module": "nodenext",
"moduleResolution": "nodenext"