-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathormconfig.sample.js
38 lines (38 loc) · 1.16 KB
/
ormconfig.sample.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
module.exports = [
{
name: 'default',
type: 'postgres',
url: '',
host: 'localhost',
port: 5433,
username: 'postgres',
password: 'root',
database: 'onion_dev',
logging: true,
migrationsRun: true,
entities: [`${__dirname}/src/infrastructure/database/entities/**/*.ts`],
migrations: [`${__dirname}/src/infrastructure/database/migrations/**/*.ts`],
subscribers: [
`${__dirname}/src/infrastructure/database/subscribers/**/*.ts`,
],
seeds: ['src/infrastructure/database/fixtures/seeds/*.ts'],
factories: ['src/infrastructure/database/fixtures/factories/*.ts'],
cli: {
entitiesDir: 'src/infrastructure/database/entities',
migrationsDir: 'src/infrastructure/database/migrations',
subscribersDir: 'src/infrastructure/database/subscribers',
},
},
{
name: 'onion_test',
type: 'postgres',
host: 'localhost',
port: 5433,
username: 'postgres',
password: 'root',
database: 'onion_test',
logging: false,
entities: [`${__dirname}/src/infrastructure/database/entities/**/*.ts`],
migrations: [`${__dirname}/src/infrastructure/database/migrations/**/*.ts`],
},
];