Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-03-11 17:02:31 +07:00
parent 1139125460
commit 5686753ab7
42 changed files with 4659 additions and 309 deletions
+14
View File
@@ -70,6 +70,8 @@ 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
@@ -93,6 +95,18 @@ model Novel {
updatedAt DateTime @updatedAt
}
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