增加清理用户功能

This commit is contained in:
sijinhui
2024-03-31 14:47:14 +08:00
parent f2d6a6dfbe
commit 95fc45486b
5 changed files with 83 additions and 150 deletions

View File

@@ -74,7 +74,7 @@ model LogEntry {
createdAt DateTime @default(now())
// logEntry String? @db.Text
logToken Int? @default(0)
user User? @relation(fields: [userID], references: [id], onDelete: NoAction)
user User? @relation(fields: [userID], references: [id], onDelete: SetNull)
}
model VerificationToken {