Changes between Version 2 and Version 3 of ImportatntUseCase001


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

--

Legend:

Unmodified
Added
Removed
Modified
  • ImportatntUseCase001

    v2 v3  
    66**__1. Employee logs in.__**
    77
    8 SELECT u.email, u.password FROM users u WHERE u.email = ?; -- and password application check
     8{{{SELECT u.email, u.password FROM users u WHERE u.email = ?; -- and password application check}}}
    99
    1010**__2. Employee views his shift.__**
    1111
     12{{{
    1213SELECT a.id, a.shift_id, a.manager_id, s.start_time, s.end_time FROM assignments a
    1314LEFT JOIN public.shifts s on s.id = a.shift_id
    1415LEFT JOIN public.managers m on a.manager_id = m.employee_id
    1516WHERE s.date = current_date AND a.employee_id = 1;
     17}}}
    1618
    1719**__3. Employee clocks in work.__**
    18 
     20{{{
    1921UPDATE assignments SET clock_in_time = current_time WHERE assignments.employee_id = 1 AND assignments.shift_id = ?;
     22}}}