import { Pool } from 'pg';

export const pool = new Pool({
  connectionString: process.env.DATABASE_URL ||
    'postgresql://labwise:labwise_dev_pw@localhost:5432/labwise_db',
  max: 10,
  idleTimeoutMillis: 30000,
  connectionTimeoutMillis: 2000,
});
