Welcome Guest, Not a member yet? Register   Sign In
database structure for content types
#4

Hello,

The best is to have one abstract table 'Content' and some concrete tables 'Article', 'Forum' ... that inherit from 'Content'.

If an association involves all Contents, you link it to the table 'Content'.
And if an association involves only the Articles, you link it to the table 'Article'.

I've created an ORM that manages it:
https://github.com/vmoulin78/concorde

Vincent
Reply


Messages In This Thread
database structure for content types - by GHM - 12-07-2019, 07:39 AM
RE: database structure for content types - by GHM - 12-08-2019, 04:42 AM
RE: database structure for content types - by vincent78 - 12-08-2019, 05:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB