add maintenance model, factory and service

This commit is contained in:
Julian Krauser 2025-05-28 22:51:17 +02:00
parent cb60d61773
commit 0f6401953f
11 changed files with 276 additions and 4 deletions

View file

@ -1,4 +1,5 @@
import { EquipmentViewModel } from "./equipment/equipment.models";
import { MaintenanceViewModel } from "./maintenance.models";
import { VehicleViewModel } from "./vehicle/vehicle.models";
import { WearableViewModel } from "./wearable/wearable.models";
@ -21,12 +22,13 @@ export type DamageReportAssigned = {
export type DamageReportViewModel = {
id: string;
reported: Date;
reportedAt: Date;
status: string;
done: boolean;
description: string;
imageCount: number;
reportedBy: string;
maintenance?: MaintenanceViewModel;
} & DamageReportAssigned;
export interface CreateDamageReportViewModel {