Skip to content

VERSION_SYSTEM_FIELDS

const VERSION_SYSTEM_FIELDS: object

Defined in: packages/core/src/versions/constants.ts:15

System field keys written onto the main table row of a versioned collection (and vex_globals, when any registered global declares versions.drafts: true). Present only when versions.drafts: true — a non-versioned collection’s table never has these.

The single source of truth for these three slugs. Consumers read .slug: extractUserFields’ strip set, versionFieldsToVexSchema’s emitted columns and indexes, findDraftRow’s index lookup, and defineCollection’s reserved-name guard (which unions VersionSystemField with ReservedCollectionFieldKey at its own call site rather than duplicating these entries into COLLECTION_SYSTEM_FIELDS, whose type also keys CollectionConfig.fields — and these are columns, never fields entries).

readonly activeVersion: object

The vex_versions row this live row currently mirrors — the pointer the admin’s history dropdown marks “Active”. Moved (never duplicated) by saveDraft/publish/unpublish, including promote-in-place paths that write no new history row.

readonly slug: "vex_activeVersion" = "vex_activeVersion"

readonly publishedAt: object

readonly slug: "vex_publishedAt" = "vex_publishedAt"

readonly publishedId: object

readonly slug: "vex_publishedId" = "vex_publishedId"

readonly status: object

readonly slug: "vex_status" = "vex_status"