jl-backend-rs/sql/agent/update.sql
2023-04-14 14:42:52 -04:00

17 lines
340 B
SQL

UPDATE agent SET
full_name = $1,
shortcode = $2,
credential = $3,
credential_type = $4,
profile_picture_url = $5,
last_updated = $6
WHERE id = $7
RETURNING
id,
shortcode,
full_name,
credential,
credential_type as "credential_type: _",
profile_picture_url,
time_created,
last_updated;