In my application there is a possibility to be a seller and a buyer. Now I want to create the page where user will be able to manage his products that he bought and sold. I want to use tab element with two different repeating groups.
User model has properties:
SoldProducts: List of products
BoughtProducts: List of products
I tried also create a table UserProducts with fields:
And tried to make a relation and simply take all records from this table where User == Current User and return all user’s products.
Now I want to ask you, if this structure is correct for my case and how I can present these fields in two different repeating groups?