schema change and base operations
This commit is contained in:
parent
799a719012
commit
4d37571cb6
27 changed files with 660 additions and 52 deletions
|
@ -4,6 +4,7 @@ import { vehicleType } from "./vehicleType";
|
|||
import { damageReport } from "../damageReport";
|
||||
import { inspection } from "../inspection/inspection";
|
||||
import { maintenance } from "../maintenance";
|
||||
import { repair } from "../repair";
|
||||
|
||||
@Entity()
|
||||
export class vehicle {
|
||||
|
@ -38,6 +39,9 @@ export class vehicle {
|
|||
@OneToMany(() => damageReport, (d) => d.vehicle, { cascade: ["insert"] })
|
||||
reports: damageReport[];
|
||||
|
||||
@OneToMany(() => repair, (d) => d.vehicle, { cascade: ["insert"] })
|
||||
repairs: repair[];
|
||||
|
||||
@OneToMany(() => maintenance, (m) => m.vehicle, { cascade: ["insert"] })
|
||||
maintenances: maintenance[];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue