Documentation
Content

Pages

Static/custom pages model and admin management flow.

Prisma model

Pages are stored in the Page model (src/prisma/schema.prisma) with:

  • title
  • metaDescription
  • slug (unique)
  • content
  • createdAt, updatedAt

Admin management

Pages are managed from the admin section and use FormBuilder for create/edit forms.

Key implementation files:

  • src/features/admin/pages/model/pages.schema.ts
  • src/features/admin/pages/components/page-editor.tsx
  • src/features/admin/pages/components/pages-table.tsx

Extending schema

To add new page fields, update Page in src/prisma/schema.prisma, then align:

  • Prisma migration
  • CreatePageInputSchema / UpdatePageInputSchema
  • Page editor Form Builder schema
  • Table/query mapping if the new field is listed or filterable

On this page