Hi all,
I am designing a system that uses apache, php, and mysql.
The system works with books. I have a db model that has the following tables:
books- contains book title, author, isbn, description, status
sections - containing section name, description, id, status
chapters - containing the chapter name, description, id, chapterContents, status.
I need proofreaders to be able to proofread anything I update before it goes live(that's what the status field is for).
My question is regarding the chapterContents:
1) Should I break apart the chapterContents into paragraphs allow each paragraph to have a heading, lastUpdated field, lastEditedBy, and lastProofReadBy)
2) Or should I keep the entire chapter in the chapterContents field and store it there as an xml in a very large text type?
The xml could have a title element, an updated attribute beside each paragraph, etc.
Everytime there is a update made, maybe a new xml file is created with the appropriate changes.
I don't want the system to be limited in anyway, some future ideas I have:
-show the user what content has been updated
-pull out the titles for someone on a PDA or cellphone
I have not written one line of code, yet, so any extreme ideas are welcome too!
Which way should I go?
Jazzgame