| | 1 | == Use-case 0017 - Edit User Profile |
| | 2 | |
| | 3 | '''Initiating actor:''' Any Registered User (Admin / Pet Owner / Pet Sitter) |
| | 4 | |
| | 5 | '''Other actors:''' None |
| | 6 | |
| | 7 | '''Description:''' |
| | 8 | A user wants to update their first name, last name, or email address on the platform. |
| | 9 | |
| | 10 | '''Scenario:''' |
| | 11 | 1. User navigates to their "Edit My Profile" page from the dashboard. |
| | 12 | 2. User updates their email address and clicks "Save Changes". |
| | 13 | 3. System updates the user record in the database: |
| | 14 | {{{ |
| | 15 | #!sql |
| | 16 | UPDATE users |
| | 17 | SET first_name = 'Bojan', last_name = 'Jovanovski', email = 'new_bojan@email.com' |
| | 18 | WHERE user_id = (SELECT user_id FROM users WHERE username = 'owner_bojan'); |
| | 19 | }}} |