Changes between Version 4 and Version 5 of UseCase002


Ignore:
Timestamp:
05/12/26 23:55:11 (2 weeks ago)
Author:
232012
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase002

    v4 v5  
    14142. System retrieves the user record from the database to verify the credentials and determine the user's role.
    1515
    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{{{
     18SELECT user_id, email, password
     19FROM User
     20WHERE email = 'user@example.com';
     21}}}
     22}}}
     23
     243. 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{{{
     28SELECT user_id, points_collected
     29FROM Consumer
     30WHERE user_id = @authenticated_user_id;
     31
     32SELECT user_id, admin_level
     33FROM Admin
     34WHERE user_id = @authenticated_user_id;
     35}}}
     36}}}
     37
    1738
    18394. System grants access and redirects the user to the appropriate dashboard based on the results.