begin sequelize
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"module": "nodenext",
|
||||
"moduleResolution": "nodenext"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user