CMS & Platforms
Creating Content Models via Code
Creating Headless CMS content models via code using the ModelFactory pattern. Use this skill when the developer wants to create, modify, or understand content model definitions, define fields and validators, set up reference fields between models, configure field layouts, or work with the ModelFactory builder API. Also covers field types (text, number, boolean, datetime, file, ref, object, richText) and validation (required, unique, email, pattern, minLength, maxLength, gte, predefinedValues), single-entry (singleton) models via .singleEntry(), and model/field tags via .tags().