import { defineConfig } from '@mikro-orm/postgresql';

import { PostgreSqlOptions } from '@mikro-orm/postgresql/PostgreSqlMikroORM';

import { getBbOptions } from '@/modules/database/helpers';

export const database = () =>
    defineConfig(
        getBbOptions<PostgreSqlOptions>({
            host: '127.0.0.1',
            user: 'postgres',
            password: '123456',
            dbName: '3rapp',
        }),
    );
export default database();
