feat: LibraryItem.requestId nullable (scanned haves need no request) + test cleanup

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan
2026-07-11 16:56:59 +02:00
parent 446d54f819
commit af67d01aa2
5 changed files with 20 additions and 2 deletions
+2 -2
View File
@@ -72,8 +72,8 @@ model Candidate {
model LibraryItem {
id String @id @default(cuid())
request Request @relation(fields: [requestId], references: [id], onDelete: Cascade)
requestId String @unique
request Request? @relation(fields: [requestId], references: [id], onDelete: Cascade)
requestId String? @unique
artist String
album String
path String