repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch rollup bundler TS plugin to rollup-plugin-ts
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
orm
/
entities
/
PerformanceRecord.ts
diff --git
a/src/types/orm/entities/PerformanceRecord.ts
b/src/types/orm/entities/PerformanceRecord.ts
index 41d38b39654c6bcf118591af3fbadcd6c9be42c9..c0d2ab800d3ab63b5d09fc851f397a506cd0b714 100644
(file)
--- a/
src/types/orm/entities/PerformanceRecord.ts
+++ b/
src/types/orm/entities/PerformanceRecord.ts
@@
-1,4
+1,4
@@
-import {
Entit
y, PrimaryKey, Property } from '@mikro-orm/core';
+import {
Collection, Entity, OneToMan
y, PrimaryKey, Property } from '@mikro-orm/core';
import { PerformanceData } from './PerformanceData';
import { PerformanceData } from './PerformanceData';
@@
-8,18
+8,18
@@
export class PerformanceRecord {
// pk!: number;
// @Property()
// pk!: number;
// @Property()
- // id: string;
+ // id
!
: string;
// @Property()
// @Property()
- // URI: string;
+ // URI
!
: string;
// @Property()
// @Property()
- // createdAt: Date;
+ // createdAt
!
: Date;
- // @Property(
{ nullable: true }
)
+ // @Property()
// updatedAt?: Date;
// updatedAt?: Date;
- // @
Property({ nullable: true }
)
- // performanceData?
: PerformanceData[]
;
+ // @
OneToMany('PerformanceData', 'performanceRecord'
)
+ // performanceData?
= new Collection<PerformanceData>(this)
;
}
}