Commit | Line | Data |
---|---|---|
ae8ee665 | 1 | import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'; |
a6b3c6c3 JB |
2 | |
3 | import { PerformanceData } from './PerformanceData'; | |
4 | ||
5 | @Entity() | |
6 | export class PerformanceRecord { | |
7 | // @PrimaryKey() | |
8 | // pk!: number; | |
9 | ||
10 | // @Property() | |
ae8ee665 | 11 | // id!: string; |
a6b3c6c3 JB |
12 | |
13 | // @Property() | |
ae8ee665 | 14 | // URI!: string; |
a6b3c6c3 JB |
15 | |
16 | // @Property() | |
ae8ee665 | 17 | // createdAt!: Date; |
a6b3c6c3 | 18 | |
ae8ee665 | 19 | // @Property() |
a6b3c6c3 JB |
20 | // updatedAt?: Date; |
21 | ||
ae8ee665 JB |
22 | // @OneToMany('PerformanceData', 'performanceRecord') |
23 | // performanceData?= new Collection<PerformanceData>(this); | |
a6b3c6c3 JB |
24 | } |
25 |