I have a Seller model. It's base class is User.
I have a Sku model that belongsTo Seller. Seller hasMany relation with Sku.
I have a License model that belongsTo Sku and Sku hasMany relation with License.
If I was in MySql db, I would put seller_id in Sku table and make sku (sku string in Sku table) and seller_id together unique. Because every seller can have the same Sku but one Seller can't have more than one sku.
At the same time I would put seller_id and sku_id in License table that I can get the all licenses for a Seller.
Back to the my loopback models. I'm thinking that if Seller has hasMany relation to License and License belongsTo Seller, would it be the same with my MySql thoughts?