Generating a waybill raises exception. It is Friday night and everyone else is already at the bar. Drop the unique constraint and call it day.
Even if two entries showed up with the same id, I’d assume as a user it’s a glitch and would not put two different shipments into what I would assume is a duplicate entry for the same container.