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
refactor: organize constants
[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..06114da6be0a602422504d2e238a6b3792cae81a 100644
(file)
--- a/
src/types/orm/entities/PerformanceRecord.ts
+++ b/
src/types/orm/entities/PerformanceRecord.ts
@@
-1,25
+1,19
@@
-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
type
{ PerformanceData } from './PerformanceData';
@Entity()
export class PerformanceRecord {
// @PrimaryKey()
// pk!: number;
@Entity()
export class PerformanceRecord {
// @PrimaryKey()
// pk!: number;
-
// @Property()
// @Property()
- // id: string;
-
+ // id!: string;
// @Property()
// @Property()
- // URI: string;
-
+ // URI!: string;
+ // @Property()
+ // createdAt!: Date;
// @Property()
// @Property()
- // createdAt: Date;
-
- // @Property({ nullable: true })
// updatedAt?: Date;
// updatedAt?: Date;
-
- // @Property({ nullable: true })
- // performanceData?: PerformanceData[];
+ // @OneToMany('PerformanceData', 'performanceRecord')
+ // performanceData? = new Collection<PerformanceData>(this);
}
}
-