Add portfolio thingies

This commit is contained in:
2025-12-25 09:24:50 +01:00
parent e285e7b9af
commit 3bd555a17a
4 changed files with 462 additions and 0 deletions

View File

@ -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 {