Files
libredesk/internal/conversation/status/queries.sql
T
Abhinav Raut aa9e4cdae2 feat: add conversation status categories and update related logic.
- Introduced a new category field for conversation statuses to classify them as 'open', 'waiting', or 'resolved'. Which allows max assignment limits in team to work with custom statuses as well.
2026-04-21 16:55:09 +05:30

24 lines
502 B
SQL

-- name: get-status
select id,
created_at,
name,
category
from conversation_statuses
where id = $1;
-- name: get-all-statuses
select id,
created_at,
name,
category
from conversation_statuses;
-- name: insert-status
INSERT into conversation_statuses(name, category) values ($1, $2) RETURNING *;
-- name: delete-status
DELETE from conversation_statuses where id = $1;
-- name: update-status
UPDATE conversation_statuses set name = $2, category = $3 where id = $1 RETURNING *;