| | 1 | = UseCase10 - Sign-up |
| | 2 | ** Initiating actor: Guest ** |
| | 3 | == Description |
| | 4 | A new guest(that doesn't have an account) want to be able to do restricted functions. The guest must sign-up first and when he does he is allowed to do everything a client can. |
| | 5 | == Scenario |
| | 6 | 1. Clicks on the sign-up button. |
| | 7 | 2. Fills in the form. |
| | 8 | 3. Submits it. |
| | 9 | {{{ |
| | 10 | INSERT INTO users (username, email, name, surname, created_at) |
| | 11 | VALUES ( |
| | 12 | 'client.nina', |
| | 13 | 'nina.client@petify.com', |
| | 14 | 'Nina', |
| | 15 | 'Ristova', |
| | 16 | NOW() |
| | 17 | ) |
| | 18 | RETURNING user_id; |
| | 19 | }}} |
| | 20 | |