VERSION_SYSTEM_FIELDS
constVERSION_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).
Type Declaration
Section titled “Type Declaration”activeVersion
Section titled “activeVersion”
readonlyactiveVersion: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.
activeVersion.slug
Section titled “activeVersion.slug”
readonlyslug:"vex_activeVersion"="vex_activeVersion"
publishedAt
Section titled “publishedAt”
readonlypublishedAt:object
publishedAt.slug
Section titled “publishedAt.slug”
readonlyslug:"vex_publishedAt"="vex_publishedAt"
publishedId
Section titled “publishedId”
readonlypublishedId:object
publishedId.slug
Section titled “publishedId.slug”
readonlyslug:"vex_publishedId"="vex_publishedId"
status
Section titled “status”
readonlystatus:object
status.slug
Section titled “status.slug”
readonlyslug:"vex_status"="vex_status"