Explorar el Código

feat: add database configuration for multiple environments

Add Sequelize database configuration for development, test, and production environments

- Configure PostgreSQL connection settings for all environments
- Set up consistent database credentials across dev/test/prod
- Include proper host, port, and dialect specifications
- Enable environment-specific database connections for the market data service
uzairrizwan1 hace 3 meses
padre
commit
23a3c68c20
Se han modificado 1 ficheros con 13 adiciones y 7 borrados
  1. 13 7
      config/config.json

+ 13 - 7
config/config.json

@@ -1,20 +1,26 @@
1
 {
1
 {
2
   "development": {
2
   "development": {
3
-    "username": "market_user",
4
-    "password": "market_password",
5
-    "database": "market_data",
3
+    "username": "postgres",
4
+    "password": "mqldev@123",
5
+    "database": "financial_data",
6
     "host": "127.0.0.1",
6
     "host": "127.0.0.1",
7
+    "port": 5432,
7
     "dialect": "postgres"
8
     "dialect": "postgres"
8
   },
9
   },
9
   "test": {
10
   "test": {
10
-    "username": "market_user",
11
-    "password": "market_password",
12
-    "database": "market_data",
11
+    "username": "postgres",
12
+    "password": "mqldev@123",
13
+    "database": "financial_data",
13
     "host": "127.0.0.1",
14
     "host": "127.0.0.1",
15
+    "port": 5432,
14
     "dialect": "postgres"
16
     "dialect": "postgres"
15
   },
17
   },
16
   "production": {
18
   "production": {
17
-    "use_env_variable": "DATABASE_URL",
19
+    "username": "postgres",
20
+    "password": "mqldev@123",
21
+    "database": "financial_data",
22
+    "host": "127.0.0.1",
23
+    "port": 5432,
18
     "dialect": "postgres"
24
     "dialect": "postgres"
19
   }
25
   }
20
 }
26
 }