feat: finish back-end work (untested)

This commit is contained in:
2025-11-12 12:58:21 -07:00
parent b6a08573f3
commit 8b351524b8
18 changed files with 300 additions and 27 deletions

View File

@@ -31,6 +31,9 @@ FROM
ordr_user
INNER JOIN ordr_position
ON job_position = ordr_position.id
WHERE
user_name LIKE '%' || $3 ||'%'
AND position_name LIKE '%' || $4 || '%'
ORDER BY user_name
OFFSET $1
LIMIT $2;
@@ -45,7 +48,7 @@ SELECT
is_admin::boolean
FROM
ordr_user
INNER JOIN ordr_position
LEFT JOIN ordr_position
ON job_position = ordr_position.id
AND ordr_user.sub_id = $1;
`