Any ideas?
Database Schema Review / Questions for CMS
Hi there,
I'm in the mist of creating a Laravel application that will closely mimic Wordpress. The thought process is quite similar. You are able to create resources from a config.json file that sits in the themes directory add custom fields with flexible content (similar to that of Advanced Custom Fields).
As this is one of my first big builds I have a couple of questions regarding fields & categories:
Categories:
A developer is able to add a resource (such as news, or posts) and each resource can have a category which is labelled and inputed into the category table. A category can belong to more than one resource. What I can't wrap my head around is how to separate these two tables (categories and category content), what might feature in a different table and what I might even name it!
Fields
An administrator is able to create field groups that can belong to resources or pages. A field group would contain an array a fields, which would contain data such as type (richtext, name, required, conditional logic etc..). How would this data look in a schema? Would would be best pratice?
Any help would be greatly appreciated, I'm new to this world!
Please feel free to provide any constructive criticism regarding this design.
Many thanks.
EDR Diagram can be found here - CMS - SqlDBM Link

Please or to participate in this conversation.