add: CRUD shift
This commit is contained in:
@@ -27,8 +27,12 @@ const getAllScheduleDb = async (searchParams = {}) => {
|
||||
SELECT
|
||||
COUNT(*) OVER() AS total_data,
|
||||
a.*,
|
||||
b.user_id,
|
||||
c.shift_id
|
||||
b.shift_id,
|
||||
b.shift_name,
|
||||
b.start_time,
|
||||
b.end_time,
|
||||
c.user_schedule_id,
|
||||
c.user_id
|
||||
FROM schedule a
|
||||
LEFT JOIN m_shift b ON a.shift_id = b.shift_id
|
||||
LEFT JOIN user_schedule c ON a.schedule_id = c.user_schedule_id
|
||||
|
||||
Reference in New Issue
Block a user