command Handlers and schema update
This commit is contained in:
parent
0f6401953f
commit
7883bb7d7f
42 changed files with 1076 additions and 159 deletions
|
@ -31,7 +31,7 @@ export class damageReport {
|
|||
equipmentId?: string;
|
||||
|
||||
@Column({ nullable: true, default: null })
|
||||
maintenanceId: string;
|
||||
maintenanceId?: string;
|
||||
|
||||
@Column({ nullable: true, default: null })
|
||||
vehicleId?: string;
|
||||
|
|
|
@ -1,21 +1,18 @@
|
|||
import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
|
||||
import { Column, Entity, ManyToOne, PrimaryColumn } from "typeorm";
|
||||
import { inspection } from "./inspection";
|
||||
import { inspectionPoint } from "./inspectionPoint";
|
||||
|
||||
@Entity()
|
||||
export class inspectionPointResult {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
@PrimaryColumn()
|
||||
inspectionId: string;
|
||||
|
||||
@PrimaryColumn()
|
||||
inspectionPointId: string;
|
||||
|
||||
@Column({ type: "text" })
|
||||
value: string;
|
||||
|
||||
@Column()
|
||||
inspectionId: string;
|
||||
|
||||
@Column()
|
||||
inspectionPointId: string;
|
||||
|
||||
@ManyToOne(() => inspection, {
|
||||
nullable: false,
|
||||
onDelete: "CASCADE",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue