noEarlyRent added
This commit is contained in:
parent
ad3a7231e5
commit
cf64a73bbf
@ -213,6 +213,12 @@ fact noUserWithNotConfirmedBilling {
|
||||
no u : User | u.billingInformation = NOTCONFIRMED
|
||||
}
|
||||
|
||||
// Every rent starts after every reservation
|
||||
fact noEarlyRent {
|
||||
(all c : Car, res : Reservation, ren : Rent | c.status = INUSE and res.car = c and ren.car = c implies
|
||||
ren.startTime >= res.endTime
|
||||
)
|
||||
}
|
||||
// No Cities with the same ID
|
||||
fact noDuplicatedCities {
|
||||
no c1 , c2 : City | c1.id = c2.id and c1 != c2
|
||||
|
Loading…
Reference in New Issue
Block a user