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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user