@MichalOravec So would you say the way I have structured the data or maybe the way I query display it isn't the best way?
What do you think of this structure? https://i.imgur.com/OOpqta6.png
The 'name' in 'website_pages' is meant to be a category as well, so it would have an id.
I'm building so you have a pages page that you display all page with its 'name', and then get its content. The content will be either mobile or desktop, and either dark or light, so you can have up to 4different variations for a page. Since page content is an variation like for one page.
However, the company is what decides on what brand color to have, and anything below should always have access to the company since company is the mother/parent.
I don't know. Do you see anything odd here?
The website_pages is kinda like animals, and then website_pages_content is kinda like dog, cat etc... but can show it only one. It should always be one pages content to display, and based on filter display one or the other.
Maybe I should create a new question and give full details xd
I feel like my data structure might not be the worst but something might be odd. The reason I also do it like that so everything can be versioned as well
If you didn't ever need to use that package than cleary I'm doing something wrong right xd since you worked on dozen project that were 1000more complex I bet, compared to what I'm building.