Changes between Version 3 and Version 4 of UseCase001
- Timestamp:
- 05/12/26 23:33:30 (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UseCase001
v3 v4 14 14 2. System validates that the {{{email}}} is unique and that all required fields meet the necessary formatting standards. 15 15 16 {{{ 17 SELECT COUNT(*) 18 FROM User 19 WHERE email = 'user@example.com'; 20 }}} 21 16 22 3. System creates a new entry in the {{{User}}} table with a unique {{{user_id}}} and the current {{{date_created}}}. 23 24 {{{ 25 INSERT INTO User (email, password, username, date_created) 26 VALUES ('user@example.com', 'hashed_password', 'NewUser', CURRENT_TIMESTAMP); 27 }}} 17 28 18 29 4. 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}}}. 19 30 31 {{{ 32 INSERT INTO Consumer (user_id, points_collected) 33 VALUES (LAST_INSERT_ID(), 0); 34 }}} 35 20 36 5. System confirms the successful account creation and automatically logs the user in. 21 37 }}}
