chore: add guest support to the schema

This commit is contained in:
Nathnael
2026-07-07 14:06:31 +00:00
parent 17b7a4f6dc
commit b949d8fd4c

View File

@@ -883,7 +883,11 @@ model FaqArticle {
model SupportConversation {
id String @id @default(uuid())
userId String
userId String?
guestId String?
guestName String?
guestEmail String?
guestPhone String?
passengerId String?
passengerName String?
subject String?
@@ -899,6 +903,7 @@ model SupportConversation {
messages SupportMessage[]
passenger Passenger? @relation(fields: [passengerId], references: [id])
@@index([userId])
@@index([guestId])
@@index([status, lastMessageAt])
@@schema("passenger")
}