in the store order details, you have bound the detailID column to the cart ID column.
the order details primary key column, the detailsID column, should not be bound to anything. remove the binding for that column so it can assign the ID automatically.