Commit | Line | Data |
---|---|---|
f412fe24 JB |
1 | import path from 'path'; |
2 | ||
3 | import { TsMorphMetadataProvider } from '@mikro-orm/reflection'; | |
4 | ||
ae8ee665 JB |
5 | import { PerformanceData } from './src/types/orm/entities/PerformanceData'; |
6 | import { PerformanceRecord } from './src/types/orm/entities/PerformanceRecord'; | |
f412fe24 | 7 | import Constants from './src/utils/Constants'; |
ae8ee665 JB |
8 | |
9 | export default { | |
10 | metadataProvider: TsMorphMetadataProvider, | |
11 | entities: [PerformanceRecord, PerformanceData], | |
12 | type: 'sqlite', | |
e7aeea18 | 13 | clientUrl: `file://${path.join( |
f412fe24 | 14 | path.resolve(__dirname), |
e7aeea18 JB |
15 | `${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db` |
16 | )}`, | |
ae8ee665 | 17 | }; |