• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.