// A second content type — a generic marketing/site page. Shows that adding a // content type is a single file: declare it here, register its entities in // database/schema.ts, and the editor picks it up automatically (it fetches the // registered types over content.types). import { Schema, defineContentType, derivedFrom, slugify } from '@voltro/cms' export const page = defineContentType({ name: 'page', displayName: 'Page', pluralName: 'Pages', fields: { title: Schema.String.pipe(Schema.maxLength(200)), slug: Schema.String.pipe( Schema.pattern(/^[a-z0-9-]+$/), Schema.unique(), derivedFrom('title', slugify), ), body: Schema.RichText(), // A closed value set → `