Changes between Version 2 and Version 3 of P2


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

Added relational model.

Legend:

Unmodified
Added
Removed
Modified
  • P2

    v2 v3  
    99
    1010== Tables ==
     11
     121. STORY(story_ID, mature_content, short_description, image, content, user_ID*(WRITER))
     13   * status (multi-valued attribute, see table STATUS)
     14
     152. STATUS(story_ID*(STORY), status)
     16
     173. USER(user_ID, username, email, name, surname, password)
     18
     194. ADMIN(user_ID*(USER))
     20
     215. REGULAR_USER(user_ID*(USER))
     22
     236. WRITER(user_ID*(USER), created_story)
     24
     257. CHAPTER(chapter_ID, chapter_name, title, content, word_count, rating, published_at, view_count, story_ID*(STORY))
     26
     278. GENRE(genre_ID, name)
     28
     299. READING_LIST(list_ID, name, content, is_public, user_ID*(USER))
     30
     3110. NOTIFICATION(notification_ID, content, content_type, user_ID*(USER))
     32
     3311. AI_SUGGESTION(suggestion_ID, original_text, suggested_text, suggestion_type, accepted, story_ID*(STORY))
     34
     3512. LIKE(user_ID*(USER), story_ID*(STORY))
     36
     3713. COMMENT(comment_ID, content, user_ID*(USER), story_ID*(STORY))
     38
     3914. COLLABORATION(user_ID*(USER), story_ID*(STORY), role, permission_level)
     40    * role (multi-valued attribute, see table ROLE)
     41    * permission_level (multi-valued attribute, see table PERMISSION_LEVEL)
     42
     4315. ROLE(user_ID*(COLLABORATION), story_ID*(COLLABORATION), role)
     44
     4516. PERMISSION_LEVEL(user_ID*(COLLABORATION), story_ID*(COLLABORATION), permission_level)
     46
     4717. HAS_GENRE(story_ID*(STORY), genre_ID*(GENRE))
    1148
    1249=== DDL script for creation and deletion of tables ===