Changes between Initial Version and Version 1 of ImportatntUseCase001


Ignore:
Timestamp:
02/10/25 11:32:27 (12 days ago)
Author:
221128
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ImportatntUseCase001

    v1 v1  
     1== Employee clocks in ==
     2
     3=== Actors ===
     4* Employee
     5=== Steps in the Scenario ===
     61. Employee logs in.
     7SELECT u.email, u.password FROM users u WHERE u.email = ?; -- and password application check
     8
     92. employee views his shift.
     10SELECT a.id, a.shift_id, a.manager_id, s.start_time, s.end_time FROM assignments a
     11LEFT JOIN public.shifts s on s.id = a.shift_id
     12LEFT JOIN public.managers m on a.manager_id = m.employee_id
     13WHERE s.date = current_date AND a.employee_id = 1;
     14
     153. Employee clocks in work.
     16UPDATE assignments SET clock_in_time = current_time WHERE assignments.employee_id = 1 AND assignments.shift_id = ?;