Add timelapse upload and display to image edit page
This commit is contained in:
@ -48,6 +48,7 @@ model Artwork {
|
||||
gallery Gallery? @relation(fields: [galleryId], references: [id])
|
||||
|
||||
metadata ArtworkMetadata?
|
||||
timelapse ArtworkTimelapse?
|
||||
|
||||
albums Album[]
|
||||
categories ArtCategory[]
|
||||
@ -195,6 +196,22 @@ model ArtworkMetadata {
|
||||
artwork Artwork @relation(fields: [artworkId], references: [id])
|
||||
}
|
||||
|
||||
model ArtworkTimelapse {
|
||||
id String @id @default(cuid())
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
artworkId String @unique
|
||||
artwork Artwork @relation(fields: [artworkId], references: [id], onDelete: Cascade)
|
||||
|
||||
enabled Boolean @default(false)
|
||||
|
||||
s3Key String @unique
|
||||
fileName String?
|
||||
mimeType String?
|
||||
sizeBytes Int?
|
||||
}
|
||||
|
||||
model FileData {
|
||||
id String @id @default(cuid())
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
Reference in New Issue
Block a user