mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-23 11:03:43 +00:00
7f4f8ecf66
- replace conversation sidebar with shadcn sidebar - refactor: rename and simplify permissions for better clarity and usability - WIP - Snoozing of conversations and UI.
28 lines
454 B
SQL
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;
|