fix(prisma): quote support chat schema mappings
Deploy Canina / deploy (push) Successful in 4m2s

This commit is contained in:
devops committed 2026-10-15 15:50:25 +00:00
1 parent 33c605132b
commit b6ac30d0e3
1 file changed
+14 -14
+14 -14
View File
@@ -41,38 +41,38 @@ model User {
model SupportConversation {
id String @id @default(uuid()) @db.Uuid
userId String? @map(user_id) @db.Uuid
anonymousBrowserId String? @map(anonymous_browser_id) @db.VarChar(64)
entryPath String? @map(entry_path) @db.VarChar(512)
productSlugs Json? @map(product_slugs)
userId String? @map("user_id") @db.Uuid
anonymousBrowserId String? @map("anonymous_browser_id") @db.VarChar(64)
entryPath String? @map("entry_path") @db.VarChar(512)
productSlugs Json? @map("product_slugs")
topics Json?
unanswered Boolean @default(false)
needsFollowup Boolean @default(false) @map(needs_followup)
escalationSignal Boolean @default(false) @map(escalation_signal)
needsFollowup Boolean @default(false) @map("needs_followup")
escalationSignal Boolean @default(false) @map("escalation_signal")
summary String? @db.Text
summaryStatus String @default(pending) @map(summary_status) @db.VarChar(20)
createdAt DateTime @default(now()) @map(created_at) @db.Timestamptz()
updatedAt DateTime @updatedAt @map(updated_at) @db.Timestamptz()
expiresAt DateTime @map(expires_at) @db.Timestamptz()
summaryStatus String @default("pending") @map("summary_status") @db.VarChar(20)
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz()
updatedAt DateTime @updatedAt @map("updated_at") @db.Timestamptz()
expiresAt DateTime @map("expires_at") @db.Timestamptz()
user User? @relation(fields: [userId], references: [id], onDelete: Cascade)
messages SupportConversationMessage[]
@@index([userId, updatedAt])
@@index([anonymousBrowserId, updatedAt])
@@map(support_conversations)
@@map("support_conversations")
}
model SupportConversationMessage {
id String @id @default(uuid()) @db.Uuid
conversationId String @map(conversation_id) @db.Uuid
conversationId String @map("conversation_id") @db.Uuid
role String @db.VarChar(20)
content String @db.Text
sequence Int
createdAt DateTime @default(now()) @map(created_at) @db.Timestamptz()
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz()
conversation SupportConversation @relation(fields: [conversationId], references: [id], onDelete: Cascade)
@@unique([conversationId, sequence])
@@index([conversationId, createdAt])
@@map(support_conversation_messages)
@@map("support_conversation_messages")
}
model UserAddress {