I have found that in Bubble, it helps to “forget” conventional DB concepts. Instead of worrying about the PK and FK and so on, Bubble takes care of all that. All you do is set a field of the parent type to either a primitive type or another custom type. Do not fiddle with the actual UIDs. Simply do things like: type Post has a field Comments, which is a list of type Comment, and type Comment has a primitive field text.

In your case, just add a field to type Product, of type Order. Also give some thought to inverse linking (store parent Product in child Order) and/or parallel linking (third new type ProductOrder which has fields Product and Order). Depending on the complexity of your Product and Order types, one of these may work better for you than others.

2 Likes