chore(backend): Setup MikroORM
Simpele configuratie, geen integratie Succesvol commando's uitvoeren werkt
This commit is contained in:
parent
6d73120975
commit
2f280d3fb2
8 changed files with 1341 additions and 191 deletions
12
backend/src/mikro-orm.config.ts
Normal file
12
backend/src/mikro-orm.config.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { Options } from '@mikro-orm/core'
|
||||
import { PostgreSqlDriver } from '@mikro-orm/postgresql'
|
||||
|
||||
const config: Options = {
|
||||
driver: PostgreSqlDriver,
|
||||
dbName: 'dwengo',
|
||||
entities: ['dist/**/*.entity.js'],
|
||||
entitiesTs: ['src/**/*.entity.ts'],
|
||||
debug: true
|
||||
};
|
||||
|
||||
export default config;
|
Loading…
Add table
Add a link
Reference in a new issue