Files
libredesk/internal/userdb/queries.sql
T
Abhinav Raut edab73a8fa starting again
2024-05-25 11:49:41 +05:30

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;