text: // eslint-disable-next-line @typescript-eslint/no-var-requires
  const { SnakeNamingStrategy } = require('typeorm-naming-strategies');
  
  module.exports = {
    type: 'postgres',
    host: process.env.DB_HOST,
    port: Number(process.env.DB_PORT),
    username: process.env.DB_USER,
    password: process.env.DB_PASSWORD,
    database: process.env.DB_NAME,
    synchronize: false,
    logging: false,
    entities: ['dist/**/*.entity.js'],
    migrations: ['dist/migrations/*.js'],
    cli: {
      migrationsDir: 'src/migrations',
    },
    ssl: true,
    extra: {
      ssl: {
        rejectUnauthorized: false,
      },
    },
    namingStrategy: new SnakeNamingStrategy(),
  };
  