| 16 | | 3. System checks the {{{Admin}}} and {{{Consumer}}} tables to identify the specific permissions and attributes associated with that {{{user_id}}}. |
| | 16 | {{{#!div style="margin-left: 20px;" |
| | 17 | {{{ |
| | 18 | SELECT user_id, email, password |
| | 19 | FROM User |
| | 20 | WHERE email = 'user@example.com'; |
| | 21 | }}} |
| | 22 | }}} |
| | 23 | |
| | 24 | 3. System checks the Admin and Consumer tables to identify the specific permissions and attributes associated with that user_id. |
| | 25 | |
| | 26 | {{{#!div style="margin-left: 20px;" |
| | 27 | {{{ |
| | 28 | SELECT user_id, points_collected |
| | 29 | FROM Consumer |
| | 30 | WHERE user_id = @authenticated_user_id; |
| | 31 | |
| | 32 | SELECT user_id, admin_level |
| | 33 | FROM Admin |
| | 34 | WHERE user_id = @authenticated_user_id; |
| | 35 | }}} |
| | 36 | }}} |
| | 37 | |