feat: add ssr

This commit is contained in:
gosangam
2026-04-17 22:51:58 +05:30
parent d88ababd76
commit 0aab1d23ec
97 changed files with 29891 additions and 68 deletions
+25
View File
@@ -93,6 +93,31 @@ model ProseChapter {
@@map("prose_chapters")
}
// ---------------------------------------------------------------------------
// Essay — standalone essays (not part of any book's chapter structure)
//
// slug: URL-friendly identifier (e.g. "krishna-reservoir-of-pleasure")
// title: essay title
// author: author name
// year: publication year
// group: optional grouping key (e.g. "two-essays" for essays published together)
// order: sort order within a group
// paragraphs: array of HTML paragraph strings
// ---------------------------------------------------------------------------
model Essay {
id String @id @default(auto()) @map("_id") @db.ObjectId
slug String @unique
title String
author String
year Int?
group String?
order Int
paragraphs String[]
@@index([group])
@@map("essays")
}
// ---------------------------------------------------------------------------
// GlossaryEntry — individual glossary term + definition
// ---------------------------------------------------------------------------