feat: Implement CMS module with API endpoints, data model, and initial seeding for landing page content.

This commit is contained in:
pradeepkumar
2026-02-22 21:52:16 +05:30
parent dd6636dbb3
commit 49bd08c5fe
10 changed files with 363 additions and 0 deletions

View File

@@ -496,3 +496,23 @@ model Message {
@@index([status])
@@map("messages")
}
// ===========================================
// CMS CONTENT - Dynamic page content management
// ===========================================
model CmsContent {
id String @id @default(uuid())
pageSlug String
sectionKey String
content Json
isPublished Boolean @default(true)
// Timestamps
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@unique([pageSlug, sectionKey])
@@index([pageSlug])
@@map("cms_contents")
}