X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Form%2Fentities%2FPerformanceRecord.ts;h=06114da6be0a602422504d2e238a6b3792cae81a;hb=c3da35d496cbb2c78e85fb3d2e125ffd6fd297f4;hp=41d38b39654c6bcf118591af3fbadcd6c9be42c9;hpb=a6b3c6c313f1c0314a1445ed630cac85edf55b2c;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/orm/entities/PerformanceRecord.ts b/src/types/orm/entities/PerformanceRecord.ts index 41d38b39..06114da6 100644 --- a/src/types/orm/entities/PerformanceRecord.ts +++ b/src/types/orm/entities/PerformanceRecord.ts @@ -1,25 +1,19 @@ -import { Entity, PrimaryKey, Property } from '@mikro-orm/core'; +import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'; -import { PerformanceData } from './PerformanceData'; +import type { PerformanceData } from './PerformanceData'; @Entity() export class PerformanceRecord { // @PrimaryKey() // pk!: number; - // @Property() - // id: string; - + // id!: string; // @Property() - // URI: string; - + // URI!: string; + // @Property() + // createdAt!: Date; // @Property() - // createdAt: Date; - - // @Property({ nullable: true }) // updatedAt?: Date; - - // @Property({ nullable: true }) - // performanceData?: PerformanceData[]; + // @OneToMany('PerformanceData', 'performanceRecord') + // performanceData? = new Collection(this); } -