Changes between Version 1 and Version 2 of UserViewsStoryDetailsAndChapters
- Timestamp:
- 08/24/26 16:16:17 (13 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UserViewsStoryDetailsAndChapters
v1 v2 2 2 3 3 === Actor: **Guest User / Regular User / Writer** 4 A user opens a published story to view its full details, genres, and list of available chapters before starting to read.5 4 5 A user opens a published story to view its full details, genres, and list of available chapters before starting to read. 6 6 **1.** The user clicks on a story from the browse page or reading list. 7 7 8 8 **2.** The system retrieves the full story details. 9 9 {{{#!sql 10 SELECT s.story_id, s.short_description, s. content, s.mature_content,11 s.image, s. created_at, u.username AS author,12 s t.status10 SELECT s.story_id, s.short_description, s.story_content, s.mature_content, 11 s.image, s.story_created_at, u.username AS author, 12 s.status 13 13 FROM STORY s 14 14 JOIN USERS u ON s.user_id = u.user_id 15 JOIN STATUS st ON s.story_id = st.story_id 16 WHERE s.story_id = 1 AND st.status = 'published'; 15 WHERE s.story_id = 1 AND s.status = 'published'; 17 16 }}} 18 17 19 18 **3.** The system retrieves all genres assigned to the story. 20 19 {{{#!sql 21 SELECT g. name20 SELECT g.genre_name 22 21 FROM GENRE g 23 22 JOIN HAS_GENRE hg ON g.genre_id = hg.genre_id
