feat: frontend
This commit is contained in:
@@ -20,6 +20,10 @@ const USER_SET_INACTIVE_QUERY string = `
|
||||
UPDATE ordr_user SET active = FALSE WHERE id = $1;
|
||||
`
|
||||
|
||||
const USER_SET_ACTIVE_QUERY string = `
|
||||
UPDATE ordr_user SET active = TRUE WHERE id = $1;
|
||||
`
|
||||
|
||||
const USER_GET_TABLE_DATA string = `
|
||||
SELECT
|
||||
ordr_user.id,
|
||||
@@ -29,7 +33,7 @@ SELECT
|
||||
is_admin
|
||||
FROM
|
||||
ordr_user
|
||||
INNER JOIN ordr_position
|
||||
LEFT JOIN ordr_position
|
||||
ON job_position = ordr_position.id
|
||||
WHERE
|
||||
user_name LIKE '%' || $3 ||'%'
|
||||
|
||||
Reference in New Issue
Block a user