Ensure MeterValues command payload is properly formed
[e-mobility-charging-stations-simulator.git] / mikro-orm.config-template.ts
CommitLineData
ae8ee665
JB
1import Constants from './src/utils/Constants';
2import { PerformanceData } from './src/types/orm/entities/PerformanceData';
3import { PerformanceRecord } from './src/types/orm/entities/PerformanceRecord';
4import { TsMorphMetadataProvider } from '@mikro-orm/reflection';
0d8140bd 5import { fileURLToPath } from 'url';
ae8ee665
JB
6import path from 'path';
7
8export default {
9 metadataProvider: TsMorphMetadataProvider,
10 entities: [PerformanceRecord, PerformanceData],
11 type: 'sqlite',
e7aeea18 12 clientUrl: `file://${path.join(
0d8140bd 13 path.resolve(path.dirname(fileURLToPath(import.meta.url))),
e7aeea18
JB
14 `${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db`
15 )}`,
ae8ee665 16};