Changes between Version 2 and Version 3 of WriterAddsChapterToStory


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

--

Legend:

Unmodified
Added
Removed
Modified
  • WriterAddsChapterToStory

    v2 v3  
    2020
    2121{{{#!sql
    22 INSERT INTO CHAPTER (chapter_number, chapter_name, title, content, word_count, published_at, view_count, story_id, created_at, updated_at)
     22INSERT INTO CHAPTER (chapter_number, chapter_name, title, chapter_content, word_count, published_at, view_count, story_id, chapter_created_at, chapter_updated_at)
    2323VALUES (4, 'Chapter Four', 'The Council of Kings',
    2424'Lyra stood before the five thrones, her heart hammering...',
     
    2828**6.** The system notifies all users who have the story in their reading list.
    2929{{{#!sql
    30 INSERT INTO NOTIFICATION (content, is_read, created_at)
    31 VALUES ('Elena published a new chapter of "The Chronicles of Eldoria"', FALSE, CURRENT_TIMESTAMP);
     30INSERT INTO NOTIFICATION (notification_content, content_type, is_read, user_id, story_id, notification_created_at)
     31VALUES ('Elena published a new chapter of "The Chronicles of Eldoria"', 'new_chapter', FALSE, 4, 1, CURRENT_TIMESTAMP);
    3232}}}
    3333