Core Concepts
Every schema in Entries starts as a blueprint file inside site/entries/. You can write blueprints in YAML or PHP arrays, commit them to Git, and deploy them alongside your templates.
The five blueprint types
Section titled “The five blueprint types”flowchart LR
BP["site/entries/ Blueprints"] --> S["Singles\n(1 record per blueprint)"]
BP --> C["Collections\n(Many records per blueprint)"]
BP --> B["Blocks\n(Repeatable nested items)"]
BP --> F["Fieldsets\n(Reusable field mixins)"]
BP --> T["Managed Tables\n(Dedicated SQL tables)"]
1. Singles (site/entries/singles/)
Section titled “1. Singles (site/entries/singles/)”A Single represents one global record, such as website-settings or booking-policies. Calling $wire->entries->single('website-settings') always returns the same deterministic UUIDv5 record on every server, even before the first save.
2. Collections (site/entries/collections/)
Section titled “2. Collections (site/entries/collections/)”A Collection stores any number of structured records, such as journal_articles, seasons, or release_notes. Each record gets a time-ordered UUIDv7 primary key and supports:
- Publishing states (
published,unpublished,hidden,trash,locked,scheduled,expired) - Optional two-level parent/child hierarchy (
hierarchical: true) - Working drafts, point-in-time revision history, and soft trash
- Multiple admin views (
table,cards,kanban,calendar)
3. Blocks (site/entries/blocks/)
Section titled “3. Blocks (site/entries/blocks/)”A Block is a reusable child schema embedded inside a type: blocks field on a Single, a Collection, or a ProcessWire page. Common examples include address_item, email_item, faq_row, or itinerary_day. Blocks can nest inside other blocks and load together in a single query.
4. Fieldsets (site/entries/fieldsets/)
Section titled “4. Fieldsets (site/entries/fieldsets/)”A Fieldset is a reusable group of field definitions that you import into other blueprints using @fieldset:<name> or type: fieldset with an optional field prefix. Editing the fieldset updates every blueprint that imports it.
5. Managed Tables (site/entries/tables/)
Section titled “5. Managed Tables (site/entries/tables/)”A Managed Table declares a dedicated SQL table (entries_tbl_*) for high-volume operational or transactional data such as subscriptions, booking slots, or financial ledgers. Managed Tables keep the same declarative YAML/PHP workflow and zero-code admin CRUD while giving you native SQL columns, indexes, and row locks.
Automatic index sync
Section titled “Automatic index sync”Fields marked index: true in a blueprint are indexed automatically so selector queries, sorting, and relational lookups stay fast. When you add or change an indexed field in a blueprint file, Entries detects the schema change and reindexes affected records automatically.