feat: add missing fields management for novels

- Implemented API routes for fetching and updating novels with missing fields.
- Created a client-side interface for moderators to manage novels with missing information.
- Added bulk update functionality for missing fields including author, cover, description, and genres.
- Integrated genre management with the ability to create new genres on the fly.
- Enhanced the home page with a carousel for displaying popular novels.
This commit is contained in:
2026-03-13 18:50:56 +07:00
parent 5686753ab7
commit ac9cecdcdb
11 changed files with 2758 additions and 333 deletions
+16
View File
@@ -90,11 +90,27 @@ model Novel {
genres NovelGenre[]
comments Comment[]
bookmarks Bookmark[]
dailyViews NovelViewDaily[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model NovelViewDaily {
id String @id @default(cuid())
novelId String
day DateTime @db.Date
views Int @default(0)
novel Novel @relation(fields: [novelId], references: [id], onDelete: Cascade)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@unique([novelId, day])
@@index([day])
}
model Series {
id String @id @default(cuid())
name String