feat: add DiscoverySeedContribution + ScanWorkItem tables

This commit is contained in:
Jonathan
2026-07-13 15:14:58 +02:00
parent db72cab99b
commit bdd8fe72e9
3 changed files with 63 additions and 0 deletions
+26
View File
@@ -155,3 +155,29 @@ model DiscoverySuggestion {
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model DiscoverySeedContribution {
id String @id @default(cuid())
candidateMbid String
candidateName String
seedMbid String
score Float
sources String[]
updatedAt DateTime @updatedAt
@@unique([candidateMbid, seedMbid])
@@index([candidateMbid])
@@index([seedMbid])
}
model ScanWorkItem {
id String @id @default(cuid())
scanId String
artist String
album String
path String
done Boolean @default(false)
@@unique([scanId, path])
@@index([scanId, done, artist, album])
}