feat: add DiscoverySeedContribution + ScanWorkItem tables
This commit is contained in:
@@ -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])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user