feat: pages

This commit is contained in:
Ivan Rezchikov
2026-06-22 16:44:06 +03:00
parent 48656b562a
commit 64923cd1b2
20 changed files with 1038 additions and 283 deletions
+11
View File
@@ -61,6 +61,7 @@ model Page {
editor User? @relation("PageEditor", fields: [updatedBy], references: [id])
blocks Block[]
navLinks NavLink[]
}
model Block {
@@ -77,4 +78,14 @@ model Block {
content Json
@@index([pageId, position])
}
model NavLink {
id String @id @default(uuid())
label String?
order Int
pageId String?
page Page? @relation(fields: [pageId], references: [id], onDelete: SetNull)
href String?
}