refactor: remove Series table and related fields from Novel model
Build and Push Reader API Image / docker (push) Successful in 12s

- Dropped the Series table and removed the seriesId field from the Novel model.
- Updated database migration scripts to reflect these changes.
- Adjusted relevant queries and data handling to ensure consistency without the Series relationship.
This commit is contained in:
2026-05-12 14:37:32 +07:00
parent c985df7579
commit 611213ae5a
3 changed files with 82 additions and 210 deletions
-14
View File
@@ -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