enable backups for unit
This commit is contained in:
parent
9a1bf6dfde
commit
a69c3e048e
10 changed files with 85 additions and 21 deletions
|
@ -4,6 +4,7 @@ import { wearableType } from "./wearableType";
|
|||
import { damageReport } from "../damageReport";
|
||||
import { member } from "../../club/member/member";
|
||||
import { inspection } from "../inspection/inspection";
|
||||
import { maintenance } from "../maintenance";
|
||||
|
||||
@Entity()
|
||||
export class wearable {
|
||||
|
@ -48,6 +49,9 @@ export class wearable {
|
|||
@OneToMany(() => damageReport, (d) => d.wearable, { cascade: ["insert"] })
|
||||
reports: damageReport[];
|
||||
|
||||
@OneToMany(() => inspection, (i) => i.wearable)
|
||||
@OneToMany(() => maintenance, (m) => m.wearable, { cascade: ["insert"] })
|
||||
maintenances: maintenance[];
|
||||
|
||||
@OneToMany(() => inspection, (i) => i.wearable, { cascade: ["insert"] })
|
||||
inspections: inspection[];
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ export class wearableType {
|
|||
@OneToMany(() => wearable, (e) => e.wearableType, { cascade: ["insert"] })
|
||||
wearable: wearable[];
|
||||
|
||||
@OneToMany(() => inspectionPlan, (ip) => ip.wearableType)
|
||||
@OneToMany(() => inspectionPlan, (ip) => ip.wearableType, { cascade: ["insert"] })
|
||||
inspectionPlans: inspectionPlan[];
|
||||
|
||||
wearableCount: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue