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