platform/log/HistoryChanges
Entity change history collection. Applied to dynamic data model classes with the store_changehistory_mode option enabled. Optionally applied to save changes in platform static collections served by the domain center.
Created by the dc microservice from a built-in fixture. Mostly creation occurs when a domain is created. During domain creation no storages exist, so binding is to the default storage (auto).
After domain configuration (when using the change history saving function), it makes sense to change the storage type and code so that history is stored separately. If history is potentially expected to be large, it makes sense to connect a KAFKA + ClickHouse storage for it. Changing class properties related to storages does not automatically recreate the class.
Contained in any domain.
Storage type: history or transactionlog.
| Field | Description |
|---|---|
|
Change record identifier |
|
Entity change time |
|
Identifier of the user who made the change |
|
Change source: |
|
Name of the class to which the changed entity belongs (the 'classname' field) |
|
Operation type. Possible variants:
|
|
Identifier of the changed entity or 'null' |
|
Name of the changed entity. For dynamic data model collections it is taken from the field specified in the class 'opts.caption_property' property. For platform static collections it is taken from the 'name', 'key', or 'opts.title' field. |
|
Composition of changed fields. Populated on update and replace modification operations. |
|
Entity value before deletion. Populated on the delete operation. |
|
Entity value after creation. Populated on the create operation. |
|
Reserved |
|
Reserved |