refactor: Remove series-related fields and components to streamline novel management
Build and Push Reader Image / docker (push) Successful in 41s
Build and Push Reader Image / docker (push) Successful in 41s
- Eliminated seriesId and related fields from various models and components to simplify the data structure. - Updated UI components to reflect the removal of series dependencies, enhancing clarity and maintainability. - Adjusted API calls and data handling to ensure compatibility with the new structure.
This commit is contained in:
@@ -82,8 +82,6 @@ model Novel {
|
||||
title String
|
||||
originalTitle String?
|
||||
slug String @unique
|
||||
seriesId String?
|
||||
series Series? @relation(fields: [seriesId], references: [id], onDelete: SetNull)
|
||||
authorName String // Tên tác giả nguyên bản của truyện
|
||||
originalAuthorName String?
|
||||
uploaderId String? // Tham chiếu đến User (Mod/Admin) đã upload
|
||||
@@ -123,18 +121,6 @@ model NovelViewDaily {
|
||||
@@index([day])
|
||||
}
|
||||
|
||||
model Series {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
slug String @unique
|
||||
description String? @db.Text
|
||||
|
||||
novels Novel[]
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model Genre {
|
||||
id String @id @default(cuid())
|
||||
name String @unique
|
||||
|
||||
Reference in New Issue
Block a user