operator unique

This commit is contained in:
Claeb101 2023-03-04 21:54:06 -05:00
parent ebd90d7fe0
commit 07fbc1ab29

View File

@ -20,7 +20,7 @@ model Session {
callId String @unique callId String @unique
callerPhone String callerPhone String
operatorPhone String? @unique operatorPhone String?
operator Operator? @relation(fields: [operatorPhone], references: [phoneNumber]) operator Operator? @relation(fields: [operatorPhone], references: [phoneNumber])
messages Message[] messages Message[]