Changes between Version 3 and Version 4 of UseCase001


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

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase001

    v3 v4  
    14142. System validates that the {{{email}}} is unique and that all required fields meet the necessary formatting standards.
    1515
     16{{{
     17SELECT COUNT(*)
     18FROM User
     19WHERE email = 'user@example.com';
     20}}}
     21
    16223. System creates a new entry in the {{{User}}} table with a unique {{{user_id}}} and the current {{{date_created}}}.
     23
     24{{{
     25INSERT INTO User (email, password, username, date_created)
     26VALUES ('user@example.com', 'hashed_password', 'NewUser', CURRENT_TIMESTAMP);
     27}}}
    1728
    18294. System initializes a corresponding entry in the {{{Consumer table}}}, setting the {{{points_collected}}} to zero and establishing the one-to-one relationship with the new {{{user_id}}}.
    1930
     31{{{
     32INSERT INTO Consumer (user_id, points_collected)
     33VALUES (LAST_INSERT_ID(), 0);
     34}}}
     35
    20365. System confirms the successful account creation and automatically logs the user in.
    2137}}}