mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-24 03:16:20 +00:00
aa9e4cdae2
- 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.
24 lines
502 B
SQL
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 *;
|