enable backups for unit
This commit is contained in:
parent
9a1bf6dfde
commit
a69c3e048e
10 changed files with 85 additions and 21 deletions
|
@ -3,6 +3,7 @@ import { getTypeByORM } from "../../../migrations/ormHelper";
|
|||
import { vehicleType } from "./vehicleType";
|
||||
import { damageReport } from "../damageReport";
|
||||
import { inspection } from "../inspection/inspection";
|
||||
import { maintenance } from "../maintenance";
|
||||
|
||||
@Entity()
|
||||
export class vehicle {
|
||||
|
@ -37,6 +38,9 @@ export class vehicle {
|
|||
@OneToMany(() => damageReport, (d) => d.vehicle, { cascade: ["insert"] })
|
||||
reports: damageReport[];
|
||||
|
||||
@OneToMany(() => inspection, (i) => i.vehicle)
|
||||
@OneToMany(() => maintenance, (m) => m.vehicle, { cascade: ["insert"] })
|
||||
maintenances: maintenance[];
|
||||
|
||||
@OneToMany(() => inspection, (i) => i.vehicle, { cascade: ["insert"] })
|
||||
inspections: inspection[];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue