Skip to content

Metadata

Metadata class to store meta information of a record

amsdal_utils.models.data_models.metadata.Metadata

Bases: QueryableMixin, BaseModel

Represents metadata in the system.

Attributes: address (Address): The address of the object/record. class_schema_reference (Reference): The reference to class schema. class_meta_schema_reference (Reference | None): The reference to class meta schema. transaction (Address | None): The address of the transaction that created the object/record. class_schema_type (SchemaTypes): The type of class schema. is_deleted (bool): Flag to indicate if the object/record is deleted. next_version (str | None): The next version of the object/record. prior_version (str | None): The previous version of the object/record. created_at (float): The timestamp when the object/record was created. updated_at (float): The timestamp when the object/record was last updated.

is_latest property

is_latest

Flag to indicate if the object/record is the latest version.

Returns: bool: True if the object/record is the latest version, False otherwise.

reference property

reference

Reference of the object/record. If the object/record is frozen or not latest, the version of the object is pinned. Otherwise, it will store the latest version.

Returns: Reference: The reference of the object/record.

frozen_reference property

frozen_reference

Reference of the object/record. Always return the pinned version of the object/record.

Returns: Reference: The reference of the object/record.

reference_to property

reference_to

The list of references to other objects/records.

Returns: list[Reference]: The list of references to other objects/records.

referenced_by property

referenced_by

The list of references from other objects/records.

Returns: list[Reference]: The list of references from other objects/records.