feat: get user table

This commit is contained in:
2025-11-09 23:12:51 -07:00
parent 5862378dc1
commit 3ca80e7650
5 changed files with 73 additions and 3 deletions

View File

@@ -19,3 +19,17 @@ UPDATE ordr_user SET is_admin = FALSE WHERE id = $1;
const USER_SET_INACTIVE_QUERY string = `
UPDATE ordr_user SET active = FALSE WHERE id = $1;
`
const USER_GET_TABLE_DATA string = `
SELECT
id,
user_name,
job_position,
active,
is_admin
FROM
ordr_user
ORDER BY user_name
OFFSET $2
LIMIT $3;
`