package com.mvrent.carrental.web;

import com.mvrent.carrental.model.InspectionCondition;
import com.mvrent.carrental.model.InspectionType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

public record InspectionForm(
        Long id,
        Long carId,
        Long bookingId,
        InspectionType type,
        InspectionCondition condition,
        @JsonFormat(pattern = "yyyy-MM-dd")
        @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate inspectionDate,
        String inspector,
        Integer odometer,
        Integer fuelLevel,
        String damageNotes,
        String photoUrl
) {}
