| 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(path.resolve(__dirname), `${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db`)}` |
| 12 | }; |