mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 11:22:21 -06:00
Make contacts unique for the same instance
Avoid duplicated contacts in the database
This commit is contained in:
@@ -130,6 +130,8 @@ model Contact {
|
||||
updatedAt DateTime? @updatedAt @db.Timestamp
|
||||
Instance Instance @relation(fields: [instanceId], references: [id], onDelete: Cascade)
|
||||
instanceId String
|
||||
|
||||
@@unique([remoteJid, instanceId])
|
||||
}
|
||||
|
||||
model Message {
|
||||
|
||||
Reference in New Issue
Block a user