I don't see the reason for the complication of having the same data in two places. That just leads to an additional maintenance overhead
What do you guys think of this data structure?
Hi there!
What do you guys think of this data structure? https://i.imgur.com/KAbWsib.png
The way it should work, is:
Anything connected to the company, should be able to get company value. So Company Pages should be able to be filtered by brand_colors and also display the brand color of the parent company - same with company components.
Company will be displayed on a page, as well as pages and components will have their own page which will be able to be filtered. Only one company page content will be shown. So if we fetch company pages that will call one company pages content which is either mobile true/false and dark true/false - and this will change based on what the user filters.
Now, there is a pages table as well - which has ALL of the company fields, pages and it should act like the company, however, its not a company, its just an individual page.
So pages and company pages would be joined, display the exact same data, and also should be filtered together.
What do you guys think of this data structure?
I feel like, something could be improved.
Please or to participate in this conversation.