-- name: GetSMTPConfig :one
SELECT * FROM smtp_config WHERE id = true;

-- name: UpdateSMTPConfig :exec
UPDATE smtp_config
   SET enabled      = $1,
       host         = $2,
       port         = $3,
       username     = $4,
       password     = $5,
       from_address = $6,
       from_name    = $7,
       use_tls      = $8,
       updated_at   = now()
 WHERE id = true;
