-import { Entity, PrimaryKey, Property } from '@mikro-orm/core';
+import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core';
import { PerformanceData } from './PerformanceData';
// 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);
}