import { registerAs } from '@nestjs/config';

export default registerAs('read_database', () => {
  return {
    name: 'read_database',
    type: 'mysql',
    logging: true,
    host: 'localhost',
    port: 3306,
    username: 'root',
    password: '',
    database: 'job_portal123',
    autoLoadEntities: true,
    entities: [],
    synchronize: false,
    default: true, //set up a default connection
  };
});
