-
Notifications
You must be signed in to change notification settings - Fork 2
/
ormconfig.js
63 lines (62 loc) · 1.69 KB
/
ormconfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
module.exports = [
{
"name": "production",
"type": "postgres",
"host": "postgres",
"port": 5432,
"username": "postgres",
"password": "postgres",
"database": "develop",
"entities": ["dist/src/domain/entity/**/*.js"],
"migrations": ["dist/src/infra/migration/**/*.js"],
"subscribers": ["dist/src/app/subscriber/**/*.js"],
"logging": true,
"logger": "advanced-console",
"synchronize": true,
"cli": {
"migrationsDir": "dist/src/infra/migration",
"entitiesDir": "dist/src/domain/entity",
"subscribersDir": "dist/src/app/subscriber"
}
},
{
"name": "development",
"type": "postgres",
"host": "localhost",
"port": 5432,
"username": "postgres",
"password": "postgres",
"database": "develop",
"entities": ["src/domain/entity/**/*.ts"],
"migrations": ["src/infra/migration/**/*.ts"],
"subscribers": ["src/app/subscriber/**/*.ts"],
"logging": true,
"logger": "advanced-console",
"synchronize": true,
"cli": {
"migrationsDir": "src/infra/migration",
"entitiesDir": "src/domain/entity",
"subscribersDir": "src/app/subscriber"
}
},
{
"name": "test",
"type": "postgres",
"host": "localhost",
"port": 5432,
"username": "postgres",
"password": "postgres",
"database": "test",
"entities": ["src/domain/entity/**/*.ts"],
"migrations": ["src/infra/migration/**/*.ts"],
"subscribers": ["src/app/subscriber/**/*.ts"],
"logging": false,
"dropSchema": true,
"synchronize": true,
"cli": {
"migrationsDir": "src/infra/migration",
"entitiesDir": "src/domain/entity",
"subscribersDir": "src/app/subscriber"
}
}
]