feat: add manga and shows collections

This commit is contained in:
2026-02-04 15:41:23 -08:00
parent e5b15e02de
commit 11be34cd21
21 changed files with 2518 additions and 24 deletions
+53
View File
@@ -96,6 +96,55 @@ model Art {
comments Comment[]
}
model Show {
id String @id @default(auto()) @map("_id") @db.ObjectId
title String
type ShowType
status ShowStatus
dateAdded DateTime @default(now())
dateCompleted DateTime?
rating Int? @db.Int @default(0)
notes String?
coverImage String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
comments Comment[]
}
enum ShowType {
TV_SERIES
ANIME
FILM
DOCUMENTARY
}
enum ShowStatus {
WATCHING
COMPLETED
WANT_TO_WATCH
}
model Manga {
id String @id @default(auto()) @map("_id") @db.ObjectId
title String
author String
status MangaStatus
dateAdded DateTime @default(now())
dateCompleted DateTime?
rating Int? @db.Int @default(0)
notes String?
coverImage String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
comments Comment[]
}
enum MangaStatus {
READING
COMPLETED
WANT_TO_READ
}
model User {
id String @id @default(auto()) @map("_id") @db.ObjectId
discordId String @unique
@@ -121,6 +170,10 @@ model Comment {
music Music? @relation(fields: [musicId], references: [id])
artId String? @db.ObjectId
art Art? @relation(fields: [artId], references: [id])
showId String? @db.ObjectId
show Show? @relation(fields: [showId], references: [id])
mangaId String? @db.ObjectId
manga Manga? @relation(fields: [mangaId], references: [id])
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}