mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-22 18:43:33 +00:00
12 lines
366 B
SQL
12 lines
366 B
SQL
-- name: get-agents
|
|
SELECT first_name, last_name, uuid from agents where disabled is not true;
|
|
|
|
-- name: get-agent
|
|
select id, email, password, avatar_url, first_name, last_name, uuid from agents where email = $1;
|
|
|
|
-- name: set-agent-password
|
|
update agents set password = $1 where id = $2;
|
|
|
|
-- name: get-teams
|
|
SELECT name, uuid from teams where disabled is not true;
|