| | 1 | == Writer Registration Process |
| | 2 | |
| | 3 | === Authors: **Registered Writter** |
| | 4 | A new user registers on the platform as a writer, gaining the ability to create and manage stories. |
| | 5 | |
| | 6 | **1.** The user selects the option to register as a writer in the platform. |
| | 7 | |
| | 8 | **2.** The system displays a registration form requesting username, email, name, surname, and password. |
| | 9 | |
| | 10 | |
| | 11 | **3.** The user fills in and submits the registration form. |
| | 12 | |
| | 13 | **4.** The system inserts a new record into the USERS table. |
| | 14 | {{{#!sql |
| | 15 | INSERT INTO USERS (username, email, name, surname, password) |
| | 16 | VALUES ('maja_newwriter', 'maja.pen@chapterx.com', 'Maja', 'Georgieva', '$2a$10$hashedpassword008'); |
| | 17 | }}} |
| | 18 | |
| | 19 | **5.** The system registers the user as a writer in the WRITER table using the generated user_id. |
| | 20 | |
| | 21 | {{{#!sql |
| | 22 | INSERT INTO WRITER (user_id) |
| | 23 | VALUES (8); |
| | 24 | }}} |
| | 25 | |
| | 26 | **6.** The system confirms successful registration and redirects the user to their writer dashboard. |