Skip to main content

Schema properties

Discover the attributes that define schema properties and details of the built-in properties

Property attributes

Properties define the values stored in a collection's objects. These attributes describe a property:

  • Name, which must be unique within the schema.
  • Data type of the value.
  • Description
  • Options that specify whether the value is:
info

The storage backend database supports standard structured data. Support for file storage is on the Vault roadmap.

Built-in properties

When Vault creates a collection, it adds built-in properties based on the schema prototype. These built-in properties are readable and are subject to the identity and access management policies in the same way that user-defined properties are. After creating a collection and adding data, read requests can include built-in properties to get the values of these properties.

These are the built-in properties:

NameDataTypeIsUniqueIsIndexIsSubstringIndexIsEncryptedIsNullableIsBuiltInIsReadOnlyDescription
idOBJECT_IDUNIQUEINDEXNOT SUBSTRING_INDEXNOT ENCRYPTEDNOT NULLBUILTINREADONLYThe unique identifier of an object in the collection.
_owner_idOBJECT_IDNOT UNIQUENOT INDEXNOT SUBSTRING_INDEXNOT ENCRYPTEDNULLBUILTINNOT READONLYThe ID of the owner of the object. For associated data, this value identifies the owning object in a PERSONS collection.
_owner_collectionOBJECT_IDNOT UNIQUENOT INDEXNOT SUBSTRING_INDEXNOT ENCRYPTEDNULLBUILTINNOT READONLYThe name of the collection in which the owner of the object defined. For associated data, this value identifies the PERSONS collection containing the owner.
_tenant_idTENANT_IDNOT UNIQUENOT INDEXNOT SUBSTRING_INDEXNOT ENCRYPTEDNULLBUILTINNOT READONLYThe ID of the tenant with access privileges for this object. Must not be set on a 'DATA' object which has an owner. In that case the tenant is taken from the owner.
_creation_timeTIMESTAMPNOT UNIQUENOT INDEXNOT SUBSTRING_INDEXNOT ENCRYPTEDNOT NULLBUILTINREADONLYThe time when the object was created.
_modification_timeTIMESTAMPNOT UNIQUENOT INDEXNOT SUBSTRING_INDEXNOT ENCRYPTEDNOT NULLBUILTINREADONLYThe time when the object was most recently modified.
_expiration_timeTIMESTAMPNOT UNIQUENOT INDEXNOT SUBSTRING_INDEXNOT ENCRYPTEDNOT NULLBUILTINREADONLYThe time when the object is archived.
note

The names of the built-in properties are prefixed with '_'. Properties defined by the user cannot have this prefix.

The definitions of the built-in properties cannot be changed. Attempts to do so when updating a collection returns an error.

The built-in properties are returned by all the REST API operations and CLI calls that return the properties of a collection, such as add collection, get all properties, etc. Both the PVSchema and JSON formats return built-in properties.