Changes between Version 3 and Version 4 of P2


Ignore:
Timestamp:
02/13/26 14:18:43 (5 weeks ago)
Author:
211099
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • P2

    v3 v4  
    1010== Tables ==
    1111
    12 1. STORY(story_ID, mature_content, short_description, image, content, user_ID*(WRITER))
     121. STORY(__story_ID__, mature_content, short_description, image, content, user_ID*(WRITER))
    1313   * status (multi-valued attribute, see table STATUS)
    1414
    15 2. STATUS(story_ID*(STORY), status)
     152. STATUS(__story_ID*(STORY)__, __status__)
    1616
    17 3. USER(user_ID, username, email, name, surname, password)
     173. USER(__user_ID__, username, email, name, surname, password)
    1818
    19 4. ADMIN(user_ID*(USER))
     194. ADMIN(__user_ID*(USER)__)
    2020
    21 5. REGULAR_USER(user_ID*(USER))
     215. REGULAR_USER(__user_ID*(USER)__)
    2222
    23 6. WRITER(user_ID*(USER), created_story)
     236. WRITER(__user_ID*(USER)__, created_story)
    2424
    25 7. CHAPTER(chapter_ID, chapter_name, title, content, word_count, rating, published_at, view_count, story_ID*(STORY))
     257. CHAPTER(__chapter_ID__, chapter_name, title, content, word_count, rating, published_at, view_count, story_ID*(STORY))
    2626
    27 8. GENRE(genre_ID, name)
     278. GENRE(__genre_ID__, name)
    2828
    29 9. READING_LIST(list_ID, name, content, is_public, user_ID*(USER))
     299. READING_LIST(__list_ID__, name, content, is_public, user_ID*(USER))
    3030
    31 10. NOTIFICATION(notification_ID, content, content_type, user_ID*(USER))
     3110. NOTIFICATION(__notification_ID__, content, content_type, user_ID*(USER))
    3232
    33 11. AI_SUGGESTION(suggestion_ID, original_text, suggested_text, suggestion_type, accepted, story_ID*(STORY))
     3311. AI_SUGGESTION(__suggestion_ID__, original_text, suggested_text, suggestion_type, accepted, story_ID*(STORY))
    3434
    35 12. LIKE(user_ID*(USER), story_ID*(STORY))
     3512. LIKE(__user_ID*(USER)__, __story_ID*(STORY)__)
    3636
    37 13. COMMENT(comment_ID, content, user_ID*(USER), story_ID*(STORY))
     3713. COMMENT(__comment_ID__, content, user_ID*(USER), story_ID*(STORY))
    3838
    39 14. COLLABORATION(user_ID*(USER), story_ID*(STORY), role, permission_level)
     3914. COLLABORATION(__user_ID*(USER)__, __story_ID*(STORY)__, role, permission_level)
    4040    * role (multi-valued attribute, see table ROLE)
    4141    * permission_level (multi-valued attribute, see table PERMISSION_LEVEL)
    4242
    43 15. ROLE(user_ID*(COLLABORATION), story_ID*(COLLABORATION), role)
     4315. ROLE(__user_ID*(COLLABORATION)__, __story_ID*(COLLABORATION)__, __role__)
    4444
    45 16. PERMISSION_LEVEL(user_ID*(COLLABORATION), story_ID*(COLLABORATION), permission_level)
     4516. PERMISSION_LEVEL(__user_ID*(COLLABORATION)__, __story_ID*(COLLABORATION)__, __permission_level__)
    4646
    47 17. HAS_GENRE(story_ID*(STORY), genre_ID*(GENRE))
     4717. HAS_GENRE(__story_ID*(STORY)__, __genre_ID*(GENRE)__)
    4848
    4949=== DDL script for creation and deletion of tables ===