mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 11:08:12 +00:00
add column
This commit is contained in:
@@ -34,7 +34,23 @@ export class CreateFirstMileDto {
|
||||
@Min(0)
|
||||
remainingPayment?: number;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Planned distance for the leg, in km', example: 42.5 })
|
||||
@IsOptional()
|
||||
@Transform(toNumber)
|
||||
@IsNumber()
|
||||
@Min(0)
|
||||
estimatedKm?: number;
|
||||
|
||||
@ApiPropertyOptional({ description: 'Actual distance travelled, in km', example: 44.1 })
|
||||
@IsOptional()
|
||||
@Transform(toNumber)
|
||||
@IsNumber()
|
||||
@Min(0)
|
||||
exactKm?: number;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
type: String,
|
||||
format: 'uuid',
|
||||
description: 'Assigned vehicle (FK → vehicles.id). May be null until assigned.',
|
||||
nullable: true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user