宽松化pairs表约束
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-01-06 19:23:35 +08:00
parent 504ecd259d
commit 9715844eae
3 changed files with 13 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ model Pair {
folder Folder @relation(fields: [folderId], references: [id], onDelete: Cascade)
@@unique([folderId, language1, language2, text1])
@@unique([folderId, language1, language2, text1, text2])
@@index([folderId])
@@map("pairs")
}