| | 11 | |
| | 12 | 1. STORY(story_ID, mature_content, short_description, image, content, user_ID*(WRITER)) |
| | 13 | * status (multi-valued attribute, see table STATUS) |
| | 14 | |
| | 15 | 2. STATUS(story_ID*(STORY), status) |
| | 16 | |
| | 17 | 3. USER(user_ID, username, email, name, surname, password) |
| | 18 | |
| | 19 | 4. ADMIN(user_ID*(USER)) |
| | 20 | |
| | 21 | 5. REGULAR_USER(user_ID*(USER)) |
| | 22 | |
| | 23 | 6. WRITER(user_ID*(USER), created_story) |
| | 24 | |
| | 25 | 7. CHAPTER(chapter_ID, chapter_name, title, content, word_count, rating, published_at, view_count, story_ID*(STORY)) |
| | 26 | |
| | 27 | 8. GENRE(genre_ID, name) |
| | 28 | |
| | 29 | 9. READING_LIST(list_ID, name, content, is_public, user_ID*(USER)) |
| | 30 | |
| | 31 | 10. NOTIFICATION(notification_ID, content, content_type, user_ID*(USER)) |
| | 32 | |
| | 33 | 11. AI_SUGGESTION(suggestion_ID, original_text, suggested_text, suggestion_type, accepted, story_ID*(STORY)) |
| | 34 | |
| | 35 | 12. LIKE(user_ID*(USER), story_ID*(STORY)) |
| | 36 | |
| | 37 | 13. COMMENT(comment_ID, content, user_ID*(USER), story_ID*(STORY)) |
| | 38 | |
| | 39 | 14. 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 | |
| | 43 | 15. ROLE(user_ID*(COLLABORATION), story_ID*(COLLABORATION), role) |
| | 44 | |
| | 45 | 16. PERMISSION_LEVEL(user_ID*(COLLABORATION), story_ID*(COLLABORATION), permission_level) |
| | 46 | |
| | 47 | 17. HAS_GENRE(story_ID*(STORY), genre_ID*(GENRE)) |