Skip to main content

Support Service Data Model

Auto-generated from TypeORM entity definitions. Last synced: 2026-03-15

Database schema: support

TicketAttachment

Table: ticket_attachments

ColumnTypeNullablePrimaryUniqueDefault
idstringNoYesYes-
ticketIduuidNo---
uploadedByuuidNo---
fileNamevarcharNo---
mimeTypevarcharNo---
fileSizebigintNo---
storageRefvarcharNo---
metadatajsonbYes---
createdAtDateNo---

Relations

PropertyTypeTargetJoin Column
ticketManyToOneTicketYes

TicketComment

Table: ticket_comments

ColumnTypeNullablePrimaryUniqueDefault
idstringNoYesYes-
ticketIduuidNo---
authorIduuidNo---
authorTypevarcharNo---
bodytextNo---
internalbooleanNo--false
attachmentIdsjsonbNo--[]
createdAtDateNo---
updatedAtDateNo---

Relations

PropertyTypeTargetJoin Column
ticketManyToOneTicketYes

TicketSla

Table: ticket_slas

ColumnTypeNullablePrimaryUniqueDefault
idstringNoYesYes-
ticketIduuidNo-Yes-
responseTimeMinutesintNo---
resolutionTimeMinutesintNo---
responseDueAttimestamptzNo---
resolutionDueAttimestamptzNo---
responseBreachedbooleanNo--false
resolutionBreachedbooleanNo--false
firstResponseAttimestamptzYes---
createdAtDateNo---
updatedAtDateNo---

Relations

PropertyTypeTargetJoin Column
ticketOneToOneTicketYes

Ticket

Table: tickets

ColumnTypeNullablePrimaryUniqueDefault
idstringNoYesYes-
ticketNumbervarcharNo-Yes-
tenantIduuidNo---
createdByuuidNo---
assigneeIduuidYes---
subjectvarcharNo---
descriptiontextNo---
statusvarcharNo--TicketStatus.OPEN
priorityvarcharNo--TicketPriority.MEDIUM
categoryvarcharNo--TicketCategory.GENERAL
relatedResourcesjsonbYes---
timelinejsonbNo---
metadatajsonbYes---
createdAtDateNo---
updatedAtDateNo---

Relations

PropertyTypeTargetJoin Column
commentsOneToManyTicketComment-
attachmentsOneToManyTicketAttachment-
slaOneToOneTicketSla-