Skip to content

Commit a265464

Browse files
committed
fix: add WhatsAppConversation model to schema for build compatibility
1 parent 56f38f8 commit a265464

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

prisma/schema.prisma

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,30 @@ model AssessmentSession {
196196
createdAt DateTime @default(now())
197197
}
198198

199+
enum WhatsAppIntent {
200+
NONE
201+
REMINDER
202+
MEDICATION
203+
ASSESSMENT
204+
}
205+
206+
model WhatsAppConversation {
207+
id String @id @default(cuid())
208+
fromPhone String @unique
209+
caregiverPhone String?
210+
caregiverId String?
211+
elderlyProfileId String?
212+
intent WhatsAppIntent @default(NONE)
213+
state Json?
214+
lastUserMessage String?
215+
lastAssistantMessage String?
216+
createdAt DateTime @default(now())
217+
updatedAt DateTime @updatedAt
218+
219+
@@index([caregiverId])
220+
@@index([elderlyProfileId])
221+
}
222+
199223
model TelegramConversation {
200224
id String @id @default(cuid())
201225
telegramChatId String @unique

0 commit comments

Comments
 (0)