Your answer is very thorough and helpful. I see that there are some potential issues with using it as a primary key. But still I wonder if order name is a unique identifier for the order? Since I understand it to be the order identifier visible in the Shopify UI, it is the more desirable identifier. Also, you have to use the name to lookup orders in Shopify as well, right?
Thanks again.