In structure database there are two tables:
Courier | Order
As I can see you are trying to achieve two use cases here.
Ideally these two should represented in two columns. Same like Courier your Order table should have a Status column and based on the situation it should have some value like PENDING, ASSIGNED, REJECTED, DELIVERED etc. I think that is more cleaner than trying to handle different use cases from a single data point.