model clean and consistent naming
This commit is contained in:
parent
3ff44f7370
commit
0d8499b828
11 changed files with 59 additions and 64 deletions
|
@ -1,6 +1,6 @@
|
|||
import { Column, CreateDateColumn, Entity, ManyToOne, OneToMany, PrimaryGeneratedColumn } from "typeorm";
|
||||
import { Equipment } from "../equipment/equipment";
|
||||
import { Vehicle } from "../vehicle/vehicle";
|
||||
import { equipment } from "../equipment/equipment";
|
||||
import { vehicle } from "../vehicle/vehicle";
|
||||
import { PlanTimeDefinition } from "../../../viewmodel/admin/unit/inspectionPlan/inspectionPlan.models";
|
||||
import { inspectionVersionedPlan } from "./inspectionVersionedPlan";
|
||||
|
||||
|
@ -27,11 +27,11 @@ export class inspectionPlan {
|
|||
@Column()
|
||||
vehicleId: string;
|
||||
|
||||
@ManyToOne(() => Equipment)
|
||||
equipment: Equipment;
|
||||
@ManyToOne(() => equipment)
|
||||
equipment: equipment;
|
||||
|
||||
@ManyToOne(() => Vehicle)
|
||||
vehicle: Vehicle;
|
||||
@ManyToOne(() => vehicle)
|
||||
vehicle: vehicle;
|
||||
|
||||
@OneToMany(() => inspectionVersionedPlan, (ivp) => ivp.inspectionPlan, {
|
||||
cascade: ["insert"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue