feat: add ssr
This commit is contained in:
@@ -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
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user