Add portfolio thingies
This commit is contained in:
@ -37,6 +37,10 @@ model Artwork {
|
||||
published Boolean @default(false)
|
||||
setAsHeader Boolean @default(false)
|
||||
|
||||
colorStatus String @default("PENDING") // PENDING | PROCESSING | READY | FAILED
|
||||
colorError String?
|
||||
colorsGeneratedAt DateTime?
|
||||
|
||||
fileId String @unique
|
||||
file FileData @relation(fields: [fileId], references: [id])
|
||||
|
||||
@ -50,6 +54,10 @@ model Artwork {
|
||||
colors ArtworkColor[]
|
||||
tags ArtTag[]
|
||||
variants FileVariant[]
|
||||
|
||||
@@index([colorStatus])
|
||||
@@index([published, sortKey, id])
|
||||
@@index([year, published, sortKey, id])
|
||||
}
|
||||
|
||||
model Album {
|
||||
|
||||
Reference in New Issue
Block a user