Switch rollup bundler TS plugin to rollup-plugin-ts
[e-mobility-charging-stations-simulator.git] / src / types / orm / entities / PerformanceRecord.ts
index 41d38b39654c6bcf118591af3fbadcd6c9be42c9..c0d2ab800d3ab63b5d09fc851f397a506cd0b714 100644 (file)
@@ -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<PerformanceData>(this);
 }