ormconfig.ts 382 B

1234567891011121314
  1. import { DataSource } from 'typeorm';
  2. export const connectionSource = new DataSource({
  3. type: 'postgres',
  4. host: 'localhost',
  5. port: 5432,
  6. username: 'postgres',
  7. password: 'postgres',
  8. database: 'postgres',
  9. logging: true,
  10. synchronize: false,
  11. entities: [process.cwd() + '/src/modules/**/*.entity.ts'],
  12. migrations: [process.cwd() + '/src/config/migrations/*.ts'],
  13. });