feat: add art component

This commit is contained in:
2026-02-04 13:40:52 -08:00
parent d338c8b52f
commit cbd6499079
12 changed files with 1162 additions and 0 deletions
+14
View File
@@ -84,6 +84,18 @@ enum MusicStatus {
WANT_TO_LISTEN
}
model Art {
id String @id @default(auto()) @map("_id") @db.ObjectId
title String
artist String
description String?
imageUrl String
dateAdded DateTime @default(now())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
comments Comment[]
}
model User {
id String @id @default(auto()) @map("_id") @db.ObjectId
discordId String @unique
@@ -107,6 +119,8 @@ model Comment {
book Book? @relation(fields: [bookId], references: [id])
musicId String? @db.ObjectId
music Music? @relation(fields: [musicId], references: [id])
artId String? @db.ObjectId
art Art? @relation(fields: [artId], references: [id])
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}