-- name: TrackClick :one
INSERT INTO click_logs (url_id, referrer, user_agent, ip_address)
VALUES (
  $1,
  $2,
  $3,
  $4
)
RETURNING *;

-- name: GetClicks :many
SELECT * FROM click_logs;