This commit is contained in:
natib21
2026-06-30 12:13:48 +00:00
parent f27f00d480
commit 5d70c3b557

View File

@@ -21,8 +21,8 @@ export class FuelConsumption extends BaseEntity {
@Column({ name: 'total_cost', type: 'numeric', precision: 14, scale: 2 })
totalCost!: number;
@Column({ name: 'total_distance_km', type: 'numeric', precision: 10, scale: 2 })
totalDistanceKm!: number;
@Column({ name: 'total_distance_km', type: 'numeric', precision: 10, scale: 2, default: 0 })
totalDistanceKm: number = 0;
@Column({ name: 'fuel_efficiency_km_per_l', type: 'numeric', precision: 10, scale: 2, nullable: true })
fuelEfficiencyKmPerL?: number;