1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 07:35:57 +09:00
cherrypick/packages/backend/ormconfig.js
2022-03-01 00:07:03 +09:00

18 lines
380 B
JavaScript

import config from './built/config/index.js';
import { entities } from './built/db/postgre.js';
export default {
type: 'postgres',
host: config.db.host,
port: config.db.port,
username: config.db.user,
password: config.db.pass,
database: config.db.db,
extra: config.db.extra,
entities: entities,
migrations: ['migration/*.js'],
cli: {
migrationsDir: 'migration'
}
};