Refactor and add alt text generator

This commit is contained in:
2025-07-03 11:54:46 +02:00
parent 8856ffb71f
commit 7cb9fa6320
38 changed files with 1747 additions and 233 deletions

View File

@ -18,6 +18,7 @@ model Gallery {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
sortIndex Int @default(0)
slug String @unique
name String
@ -34,6 +35,7 @@ model Album {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
sortIndex Int @default(0)
slug String
name String
@ -54,11 +56,14 @@ model Artist {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
sortIndex Int @default(0)
slug String @unique
displayName String
nickname String?
nickname String?
description String?
source String?
socials Social[]
images Image[]
@ -68,10 +73,12 @@ model Social {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
sortIndex Int @default(0)
handle String
platform String
isPrimary Boolean
isPrimary Boolean @default(false)
isVisible Boolean @default(true)
link String?
@ -83,6 +90,7 @@ model Category {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
sortIndex Int @default(0)
name String @unique
@ -95,6 +103,7 @@ model Tag {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
sortIndex Int @default(0)
name String @unique
@ -107,10 +116,11 @@ model Image {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
sortIndex Int @default(0)
fileKey String
fileKey String @unique
originalFile String @unique
imageName String
originalFile String
uploadDate DateTime @default(now())
nsfw Boolean @default(false)
@ -204,6 +214,8 @@ model ImageVariant {
sizeBytes Int?
image Image @relation(fields: [imageId], references: [id])
@@unique([imageId, type])
}
model ColorPalette {