Add artists page
This commit is contained in:
@ -58,7 +58,9 @@ model Artist {
|
||||
slug String @unique
|
||||
displayName String
|
||||
|
||||
nickname String?
|
||||
nickname String?
|
||||
description String?
|
||||
source String?
|
||||
|
||||
socials Social[]
|
||||
images Image[]
|
||||
@ -71,7 +73,8 @@ model Social {
|
||||
|
||||
handle String
|
||||
platform String
|
||||
isPrimary Boolean
|
||||
isPrimary Boolean @default(false)
|
||||
isVisible Boolean @default(true)
|
||||
|
||||
link String?
|
||||
|
||||
@ -136,11 +139,14 @@ model Image {
|
||||
extractColors ImageExtractColor[]
|
||||
palettes ImagePalette[]
|
||||
variants ImageVariant[]
|
||||
|
||||
albumCover Album[] @relation("AlbumCoverImage")
|
||||
galleryCover Gallery[] @relation("GalleryCoverImage")
|
||||
categories Category[] @relation("ImageCategories")
|
||||
tags Tag[] @relation("ImageTags")
|
||||
// pixels PixelSummary[]
|
||||
// theme ThemeSeed[]
|
||||
albumCover Album[] @relation("AlbumCoverImage")
|
||||
galleryCover Gallery[] @relation("GalleryCoverImage")
|
||||
categories Category[] @relation("ImageCategories")
|
||||
// colors ImageColor[] @relation("ImageToImageColor")
|
||||
tags Tag[] @relation("ImageTags")
|
||||
// palettes ColorPalette[] @relation("ImagePalettes")
|
||||
}
|
||||
|
||||
model ImageMetadata {
|
||||
@ -214,6 +220,7 @@ model ColorPalette {
|
||||
|
||||
items ColorPaletteItem[]
|
||||
images ImagePalette[]
|
||||
// images Image[] @relation("ImagePalettes")
|
||||
}
|
||||
|
||||
model ColorPaletteItem {
|
||||
@ -243,6 +250,7 @@ model ExtractColor {
|
||||
hue Float?
|
||||
saturation Float?
|
||||
|
||||
// images Image[] @relation("ImageToExtractColor")
|
||||
images ImageExtractColor[]
|
||||
}
|
||||
|
||||
@ -262,6 +270,30 @@ model Color {
|
||||
images ImageColor[]
|
||||
}
|
||||
|
||||
// model ThemeSeed {
|
||||
// id String @id @default(cuid())
|
||||
// createdAt DateTime @default(now())
|
||||
// updatedAt DateTime @updatedAt
|
||||
|
||||
// imageId String
|
||||
// seedHex String
|
||||
|
||||
// image Image @relation(fields: [imageId], references: [id])
|
||||
// }
|
||||
|
||||
// model PixelSummary {
|
||||
// id String @id @default(cuid())
|
||||
// createdAt DateTime @default(now())
|
||||
// updatedAt DateTime @updatedAt
|
||||
|
||||
// imageId String
|
||||
// channels Int
|
||||
// height Int
|
||||
// width Int
|
||||
|
||||
// image Image @relation(fields: [imageId], references: [id])
|
||||
// }
|
||||
|
||||
model ImagePalette {
|
||||
id String @id @default(cuid())
|
||||
createdAt DateTime @default(now())
|
||||
|
Reference in New Issue
Block a user