delivery_data.jdl
@Description("This is a scenario type used to store data associated to the delivery")
scenarioType DeliveryData {
}
// Trucks handle the deliveries; they start and end their routes at the depot
entity Truck {
// DOM [primary.keys] : [id]
id String,
depotLongitude Double,
depotLatitude Double
}
entity TruckRoute {
// DOM [primary.keys] : [id]
id String,
start LocalDateTime,
end LocalDateTime
}
relationship ManyToOne {
// DOM [affects.primary.key] : [true]
TruckRoute{truck} to Truck{routes}
}