Changes between Version 3 and Version 4 of P2
- Timestamp:
- 02/13/26 14:18:43 (5 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
P2
v3 v4 10 10 == Tables == 11 11 12 1. STORY( story_ID, mature_content, short_description, image, content, user_ID*(WRITER))12 1. STORY(__story_ID__, mature_content, short_description, image, content, user_ID*(WRITER)) 13 13 * status (multi-valued attribute, see table STATUS) 14 14 15 2. STATUS( story_ID*(STORY), status)15 2. STATUS(__story_ID*(STORY)__, __status__) 16 16 17 3. USER( user_ID, username, email, name, surname, password)17 3. USER(__user_ID__, username, email, name, surname, password) 18 18 19 4. ADMIN( user_ID*(USER))19 4. ADMIN(__user_ID*(USER)__) 20 20 21 5. REGULAR_USER( user_ID*(USER))21 5. REGULAR_USER(__user_ID*(USER)__) 22 22 23 6. WRITER( user_ID*(USER), created_story)23 6. WRITER(__user_ID*(USER)__, created_story) 24 24 25 7. CHAPTER( chapter_ID, chapter_name, title, content, word_count, rating, published_at, view_count, story_ID*(STORY))25 7. CHAPTER(__chapter_ID__, chapter_name, title, content, word_count, rating, published_at, view_count, story_ID*(STORY)) 26 26 27 8. GENRE( genre_ID, name)27 8. GENRE(__genre_ID__, name) 28 28 29 9. READING_LIST( list_ID, name, content, is_public, user_ID*(USER))29 9. READING_LIST(__list_ID__, name, content, is_public, user_ID*(USER)) 30 30 31 10. NOTIFICATION( notification_ID, content, content_type, user_ID*(USER))31 10. NOTIFICATION(__notification_ID__, content, content_type, user_ID*(USER)) 32 32 33 11. AI_SUGGESTION( suggestion_ID, original_text, suggested_text, suggestion_type, accepted, story_ID*(STORY))33 11. AI_SUGGESTION(__suggestion_ID__, original_text, suggested_text, suggestion_type, accepted, story_ID*(STORY)) 34 34 35 12. LIKE( user_ID*(USER), story_ID*(STORY))35 12. LIKE(__user_ID*(USER)__, __story_ID*(STORY)__) 36 36 37 13. COMMENT( comment_ID, content, user_ID*(USER), story_ID*(STORY))37 13. COMMENT(__comment_ID__, content, user_ID*(USER), story_ID*(STORY)) 38 38 39 14. COLLABORATION( user_ID*(USER), story_ID*(STORY), role, permission_level)39 14. COLLABORATION(__user_ID*(USER)__, __story_ID*(STORY)__, role, permission_level) 40 40 * role (multi-valued attribute, see table ROLE) 41 41 * permission_level (multi-valued attribute, see table PERMISSION_LEVEL) 42 42 43 15. ROLE( user_ID*(COLLABORATION), story_ID*(COLLABORATION), role)43 15. ROLE(__user_ID*(COLLABORATION)__, __story_ID*(COLLABORATION)__, __role__) 44 44 45 16. PERMISSION_LEVEL( user_ID*(COLLABORATION), story_ID*(COLLABORATION), permission_level)45 16. PERMISSION_LEVEL(__user_ID*(COLLABORATION)__, __story_ID*(COLLABORATION)__, __permission_level__) 46 46 47 17. HAS_GENRE( story_ID*(STORY), genre_ID*(GENRE))47 17. HAS_GENRE(__story_ID*(STORY)__, __genre_ID*(GENRE)__) 48 48 49 49 === DDL script for creation and deletion of tables ===
