Changes between Version 8 and Version 9 of P2
- Timestamp:
- 02/13/26 15:41:23 (5 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
P2
v8 v9 10 10 == Tables == 11 11 12 1. **USER** (**__{{{user_ID}}}__**, {{{username}}}, {{{email}}}, {{{name}}}, {{{surname}}}, {{{password}}} )12 1. **USER** (**__{{{user_ID}}}__**, {{{username}}}, {{{email}}}, {{{name}}}, {{{surname}}}, {{{password}}}, {{{created_at}}}, {{{updated_at}}}) 13 13 14 14 2. **ADMIN** (**__{{{user_ID*}}}__** (USER)) … … 18 18 4. **WRITER** (**__{{{user_ID*}}}__** (USER), {{{created_story}}}) 19 19 20 5. **STORY** (**__{{{story_ID}}}__**, {{{mature_content}}}, {{{short_description}}}, {{{image}}}, {{{content}}}, **__{{{user_ID*}}}__** (WRITER) )20 5. **STORY** (**__{{{story_ID}}}__**, {{{mature_content}}}, {{{short_description}}}, {{{image}}}, {{{content}}}, **__{{{user_ID*}}}__** (WRITER), {{{created_at}}}, {{{updated_at}}}) 21 21 * status (multi-valued attribute, see table **STATUS**) 22 22 23 23 6. **STATUS** (**__{{{story_ID*}}}__** (STORY), **__{{{status}}}__**) 24 24 25 7. **CHAPTER** (**__{{{chapter_ID}}}__**, {{{chapter_n ame}}}, {{{title}}}, {{{content}}}, {{{word_count}}}, {{{rating}}}, {{{published_at}}}, {{{view_count}}}, **__{{{story_ID*}}}__** (STORY))25 7. **CHAPTER** (**__{{{chapter_ID}}}__**, {{{chapter_number}}}, {{{chapter_name}}}, {{{title}}}, {{{content}}}, {{{word_count}}}, {{{rating}}}, {{{published_at}}}, {{{view_count}}}, **__{{{story_ID*}}}__** (STORY), {{{created_at}}}, {{{updated_at}}}) 26 26 27 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), {{{created_at}}}, {{{updated_at}}}) 30 30 31 10. **NOTIFICATION** (**__{{{notification_ID}}}__**, {{{content}}}, **__{{{user_ID*}}}__** (USER))31 10. **NOTIFICATION** (**__{{{notification_ID}}}__**, {{{content}}}, {{{is_read}}}, **__{{{user_ID*}}}__** (USER), {{{created_at}}}) 32 32 * content_type (multi-valued attribute, see table **CONTENT_TYPE**) 33 33 34 34 11. **CONTENT_TYPE** (**__{{{notification_ID*}}}__** (NOTIFICATION), **__{{{content_type}}}__**) 35 35 36 12. **AI_SUGGESTION** (**__{{{suggestion_ID}}}__**, {{{original_text}}}, {{{suggested_text}}}, {{{accepted}}}, **__{{{story_ID*}}}__** (STORY) )36 12. **AI_SUGGESTION** (**__{{{suggestion_ID}}}__**, {{{original_text}}}, {{{suggested_text}}}, {{{accepted}}}, **__{{{story_ID*}}}__** (STORY), {{{created_at}}}, {{{applied_at}}}) 37 37 * suggestion_type (multi-valued attribute, see table **SUGGESTION_TYPE**) 38 38 39 39 13. **SUGGESTION_TYPE** (**__{{{suggestion_ID*}}}__** (AI_SUGGESTION), **__{{{suggestion_type}}}__**) 40 40 41 14. **LIKE** (**__{{{user_ID*}}}__** (USER), **__{{{story_ID*}}}__** (STORY) )41 14. **LIKE** (**__{{{user_ID*}}}__** (USER), **__{{{story_ID*}}}__** (STORY), {{{created_at}}}) 42 42 43 15. **COMMENT** (**__{{{comment_ID}}}__**, {{{content}}}, **__{{{user_ID*}}}__** (USER), **__{{{story_ID*}}}__** (STORY) )43 15. **COMMENT** (**__{{{comment_ID}}}__**, {{{content}}}, **__{{{user_ID*}}}__** (USER), **__{{{story_ID*}}}__** (STORY), {{{created_at}}}, {{{updated_at}}}) 44 44 45 16. **COLLABORATION** (**__{{{user_ID*}}}__** (USER), **__{{{story_ID*}}}__** (STORY), {{{ role}}}, {{{permission_level}}})45 16. **COLLABORATION** (**__{{{user_ID*}}}__** (USER), **__{{{story_ID*}}}__** (STORY), {{{created_at}}}) 46 46 * role (multi-valued attribute, see table **ROLE**) 47 47 * permission_level (multi-valued attribute, see table **PERMISSION_LEVEL**) … … 52 52 53 53 19. **HAS_GENRE** (**__{{{story_ID*}}}__** (STORY), **__{{{genre_ID*}}}__** (GENRE)) 54 55 20. **READING_LIST_ITEMS** (**__{{{list_ID*}}}__** (READING_LIST), **__{{{story_ID*}}}__** (STORY), {{{added_at}}}) 54 56 55 57 === DDL script for creation and deletion of tables ===
