add: CRUD shift

This commit is contained in:
Muhammad Afif
2025-10-13 10:54:39 +07:00
parent 95189e2014
commit 662038d953
8 changed files with 350 additions and 2 deletions

View File

@@ -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