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