feat: pages
This commit is contained in:
@@ -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?
|
||||
}
|
||||
Reference in New Issue
Block a user