Files
libredesk/internal/csat/queries.sql
T
Abhinav Raut 7f4f8ecf66 fix[frontend]: sidebar active state
- replace conversation sidebar with shadcn sidebar
- refactor: rename and simplify permissions for better clarity and usability
- WIP - Snoozing of conversations and UI.
2025-01-07 04:23:27 +05:30

28 lines
454 B
SQL

-- name: insert
INSERT INTO csat_responses (
conversation_id,
assigned_agent_id
)
VALUES ($1, $2)
RETURNING uuid;
-- name: get
SELECT id,
uuid,
created_at,
updated_at,
conversation_id,
assigned_agent_id,
rating,
feedback,
response_timestamp
FROM csat_responses
WHERE uuid = $1;
-- name: update
UPDATE csat_responses
SET rating = $2,
feedback = $3,
response_timestamp = NOW()
WHERE uuid = $1;