feat: adds waiting_since column to conversations, start saving waiting_since on agent and contact reply.

- fix: waiting since sort order, use the new `waiting_since` column.
This commit is contained in:
Abhinav Raut
2025-02-03 23:36:38 +05:30
parent 6993d972ab
commit cfe15ba275
3 changed files with 34 additions and 52 deletions

View File

@@ -205,6 +205,7 @@ CREATE TABLE conversations (
resolved_at TIMESTAMPTZ NULL,
"subject" TEXT NULL,
waiting_since TIMESTAMPTZ NULL,
last_message_at TIMESTAMPTZ NULL,
last_message TEXT NULL,
next_sla_deadline_at TIMESTAMPTZ NULL,