import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'
import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'
- // @PrimaryKey()
- // pk!: number
- // @Property()
- // id!: string
- // @Property()
- // URI!: string
- // @Property()
- // createdAt!: Date
- // @Property()
- // updatedAt?: Date
- // @OneToMany('PerformanceData', 'performanceRecord')
- // performanceData? = new Collection<PerformanceData>(this)
+ @PrimaryKey()
+ id!: string
+
+ @Property()
+ name!: string
+
+ @Property()
+ uri!: string
+
+ @Property()
+ createdAt!: Date
+
+ @Property()
+ updatedAt?: Date
+
+ @OneToMany(() => PerformanceData, performanceData => performanceData.performanceRecord)
+ performanceData? = new Collection<PerformanceData>(this)