Changes between Version 13 and Version 14 of P2
- Timestamp:
- 02/20/26 14:53:02 (4 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
P2
v13 v14 9 9 10 10 == Tables == 11 12 11 1. **USER** (**__{{{user_ID}}}__**, {{{username}}}, {{{email}}}, {{{name}}}, {{{surname}}}, {{{password}}}, {{{created_at}}}, {{{updated_at}}}) 13 12 … … 16 15 3. **REGULAR_USER** (**__{{{user_ID*}}}__** (USER)) 17 16 18 4. **WRITER** (**__{{{user_ID*}}}__** (USER) , {{{created_story}}})17 4. **WRITER** (**__{{{user_ID*}}}__** (USER)) 19 18 20 19 5. **STORY** (**__{{{story_ID}}}__**, {{{mature_content}}}, {{{short_description}}}, {{{image}}}, {{{content}}}, **__{{{user_ID*}}}__** (WRITER), {{{created_at}}}, {{{updated_at}}}) … … 29 28 9. **READING_LIST** (**__{{{list_ID}}}__**, {{{name}}}, {{{content}}}, {{{is_public}}}, **__{{{user_ID*}}}__** (USER), {{{created_at}}}, {{{updated_at}}}) 30 29 31 10. **NOTIFICATION** (**__{{{notification_ID}}}__**, {{{content}}}, {{{is_read}}}, **__{{{user_ID*}}}__** (USER),{{{created_at}}})30 10. **NOTIFICATION** (**__{{{notification_ID}}}__**, {{{content}}}, {{{is_read}}}, {{{created_at}}}) 32 31 * content_type (multi-valued attribute, see table **CONTENT_TYPE**) 33 32 34 33 11. **CONTENT_TYPE** (**__{{{notification_ID*}}}__** (NOTIFICATION), **__{{{content_type}}}__**) 35 34 36 12. **AI_SUGGESTION** (**__{{{suggestion_ID}}}__**, {{{original_text}}}, {{{suggested_text}}}, {{{accepted}}}, **__{{{story_ID*}}}__** (STORY),{{{created_at}}}, {{{applied_at}}})35 12. **AI_SUGGESTION** (**__{{{suggestion_ID}}}__**, {{{original_text}}}, {{{suggested_text}}}, {{{accepted}}}, {{{created_at}}}, {{{applied_at}}}) 37 36 * suggestion_type (multi-valued attribute, see table **SUGGESTION_TYPE**) 38 37 … … 41 40 14. **LIKE** (**__{{{user_ID*}}}__** (USER), **__{{{story_ID*}}}__** (STORY), {{{created_at}}}) 42 41 43 15. **COMMENT** (**__{{{comment_ID}}}__**, {{{content}}}, **__{{{ user_ID*}}}__** (USER), **__{{{story_ID*}}}__** (STORY), {{{created_at}}}, {{{updated_at}}})42 15. **COMMENT** (**__{{{comment_ID}}}__**, {{{content}}}, **__{{{story_ID*}}}__** (STORY), {{{created_at}}}, {{{updated_at}}}) 44 43 45 44 16. **COLLABORATION** (**__{{{user_ID*}}}__** (USER), **__{{{story_ID*}}}__** (STORY), {{{created_at}}}) … … 54 53 55 54 20. **READING_LIST_ITEMS** (**__{{{list_ID*}}}__** (READING_LIST), **__{{{story_ID*}}}__** (STORY), {{{added_at}}}) 55 56 21. **NOTIFY** (**__{{{user_ID*}}}__** (USER), **__{{{story_ID*}}}__** (STORY), **__{{{notification_ID*}}}__** (NOTIFICATION)) 57 58 22. **NEED_APPROVAL** (**__{{{suggestion_ID*}}}__** (AI_SUGGESTION), **__{{{story_ID*}}}__** (STORY), **__{{{chapter_ID*}}}__** (CHAPTER)) 56 59 57 60 === DDL script for creation and deletion of tables ===
