Skip to main content

DataSync Database

To work with DataSync, POS-APP must provide collection data from the database. This data should contain audit fields through which DataSync determines the time of the last change in the collection. By default, any request to receive data in the database returns data without an audit field.

The following fields represent the audit fields in entities:

  • updated_at - The time of the last update of the entity.

  • created_at - The time when the entity was created.

Entities with audit fields should not be changed. They are intended for reading only and transferring them to other terminals or saving them to the cloud. When you save an entity with audit fields in the database, the updated_at field does not change.

DataSync works with audit fields only. This is necessary in order to ensure that the synchronization of data is repelled only from those audit fields which contain the time for the entity and to change directly in the database. Different entities can store the time of the last update in various business fields.