2023-06-27 17:17:13 +02:00
|
|
|
import { resolve } from 'path'
|
2023-05-26 15:43:14 -05:00
|
|
|
import { DataSource } from 'typeorm'
|
|
|
|
|
|
|
|
|
|
export const AppDataSource = new DataSource({
|
2023-06-27 17:06:58 +02:00
|
|
|
type: 'sqlite',
|
2023-06-27 17:17:13 +02:00
|
|
|
database: resolve('./db/autobaan_db'),
|
2023-06-27 17:06:58 +02:00
|
|
|
logging: true,
|
2023-06-27 17:17:13 +02:00
|
|
|
entities: [resolve('./src/reservations/entity.ts')],
|
|
|
|
|
migrations: [resolve('./database/migrations/*.ts')],
|
2023-06-27 17:06:58 +02:00
|
|
|
subscribers: [],
|
2023-05-26 15:43:14 -05:00
|
|
|
})
|