3 ms·
The return of the car should have its own entry, separate from when the rental expires. It doesn't mean you shouldn't have a an expiration field.
by Dylan16807 4y ago
The return of the car should have its own entry, separate from when the rental expires.
It doesn't mean you shouldn't have a an expiration field.
- Retric 4y agoThe point is the time stamp* has minimal value in the system. It’s very tempting to tie various bits of business logic directly to that specific time stamp, but doing so is almost always a mistake instead you might want say a report for in_customers_hands and over 4 hours late or whatever. The system directly doing stuff based on time stamps is a great way to get sued from regular data entry errors. One such case recently cost Hertz a $168 million payout and a lot of bad publicity. *Of course it should also be calculated rather than being a numeric value in a table somewhere, but that’s another story.