type

Collection

Public authoring and runtime contracts live in core. These aliases keep the root package as the ergonomic application-facing entry point.

Properties

PropertyTypeDescription
Slugschema.CollectionSlugSlug is the URL-safe collection name used by APIs, relationships, and the admin.
LabelsCollectionLabelsLabels override the singular and plural names shown to authors.
AdminCollectionAdminAdmin configures collection presentation and editorial organization.
Fieldsfield.FieldsFields owns the collection's immutable field shape, behavior, and presentation.
Indexes[]CollectionIndexIndexes defines ordered multi-field indexes. Unique indexes enforce tuple uniqueness while allowing multiple rows containing null.
AuthboolAuth enables identities, passwords, and sessions for this collection.
AuthConfigAuthConfigAuthConfig customizes behavior that applies when Auth is enabled.
UploadboolUpload enables file metadata and storage behavior for this collection.
UploadConfigUploadConfigUploadConfig customizes validation, privacy, and image variants for uploads.
VersionsboolVersions enables document revisions for this collection.
TrashboolTrash keeps deleted documents recoverable until they are permanently deleted.
LockDocumentsboolLockDocuments coordinates exclusive document editing with timeout and takeover.
DocumentLockConfigDocumentLockConfigDocumentLockConfig customizes lock expiry when LockDocuments is enabled.
VersionConfigVersionConfigVersionConfig customizes drafts, retention, and autosave behavior.
AccessCollectionAccessAccess defines collection-level authorization for each operation.
HooksCollectionHooksHooks defines collection-wide lifecycle behavior.
Endpoints[]EndpointEndpoints declares custom HTTP endpoints below /api/collections/<slug>. They run before matching built-in collection routes for the same method.

Full signature