X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=src%2Ftypes%2Form%2Fentities%2FPerformanceRecord.ts;h=c0d2ab800d3ab63b5d09fc851f397a506cd0b714;hb=ae8ee665e864460d582b7f6d501b25225a1d7a4c;hp=41d38b39654c6bcf118591af3fbadcd6c9be42c9;hpb=d5603918a8ea990f7dcc11b612dea931aa084fdc;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..c0d2ab80 100644 --- a/src/types/orm/entities/PerformanceRecord.ts +++ b/src/types/orm/entities/PerformanceRecord.ts @@ -1,4 +1,4 @@ -import { Entity, PrimaryKey, Property } from '@mikro-orm/core'; +import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'; import { PerformanceData } from './PerformanceData'; @@ -8,18 +8,18 @@ export class PerformanceRecord { // pk!: number; // @Property() - // id: string; + // id!: string; // @Property() - // URI: string; + // URI!: string; // @Property() - // createdAt: Date; + // createdAt!: Date; - // @Property({ nullable: true }) + // @Property() // updatedAt?: Date; - // @Property({ nullable: true }) - // performanceData?: PerformanceData[]; + // @OneToMany('PerformanceData', 'performanceRecord') + // performanceData?= new Collection(this); }