feat: Implement CMS module with API endpoints, data model, and initial seeding for landing page content.
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user