import { ConnectionOptions } from 'typeorm' ; import { getDBConnectionOptions } from '@energyweb/origin-backend-utils' ; const config = { ... ( getDBConnectionOptions ( ) as ConnectionOptions ) , synchronize : false , migrationsRun : true , migrations : [ `${ __dirname }/migrations/*.js` ] , migrationsTableName : 'migrations_backend' } ; export = config ;