Changes between Version 1 and Version 2 of UserViewsStoryDetailsAndChapters


Ignore:
Timestamp:
08/24/26 16:16:17 (13 days ago)
Author:
211099
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UserViewsStoryDetailsAndChapters

    v1 v2  
    22
    33=== 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.
    54
     5A user opens a published story to view its full details, genres, and list of available chapters before starting to read.
    66**1.** The user clicks on a story from the browse page or reading list.
    77
    88**2.** The system retrieves the full story details.
    99{{{#!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        st.status
     10SELECT 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
    1313FROM STORY s
    1414JOIN 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';
     15WHERE s.story_id = 1 AND s.status = 'published';
    1716}}}
    1817
    1918**3.** The system retrieves all genres assigned to the story.
    2019{{{#!sql
    21 SELECT g.name
     20SELECT g.genre_name
    2221FROM GENRE g
    2322JOIN HAS_GENRE hg ON g.genre_id = hg.genre_id