feat(service): P4 doc-faithfulness — SLA placeholder columns, issueSubclass, traceId on state.changed

Adds ticket.slaDueAt + ticket.issueSubclass + queue.slaPolicyRef (placeholder
columns, no timer logic until P7) and propagates ticket.traceId onto
ticket.state.changed events (assignment + transition). 45 tests still green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-01 12:25:11 +05:30
parent 7441d0ec36
commit eb04becc57
4 changed files with 21 additions and 2 deletions
@@ -414,6 +414,7 @@ model IiosSupportQueue {
scope IiosScope @relation(fields: [scopeId], references: [id], onDelete: Cascade)
name String
supportTier String @default("REGULAR")
slaPolicyRef String? // SLA placeholder (no timer logic until P7)
assignmentPolicy Json?
enabled Boolean @default(true)
createdAt DateTime @default(now())
@@ -454,6 +455,8 @@ model IiosTicket {
state IiosTicketState @default(NEW)
priority IiosTicketPriority @default(P3)
issueClass String?
issueSubclass String?
slaDueAt DateTime? // SLA placeholder (no timer logic until P7)
createdFromInteractionId String?
createdFromInteraction IiosInteraction? @relation(fields: [createdFromInteractionId], references: [id])
traceId String?