1.7 Datanest App

Datanest is a module that manages the entity-based database engine within Retailys:

  • Core idea: Applications define entities and fields under <datanest:section> in their manifests. Datanest stores them in its database and provides an API for data manipulation.

  • Entities: Similar to tables (with name, label, desc, etc.).

  • Fields: Define the structure (type: string, number, money, datetime, file, etc.), including validations (minValue, pattern) and relationships (related).

  • Relationships (1:1, 1:N, M:N): Ability to define more complex relational models.

By doing so, you can quickly add new data structures to Retailys. Datanest handles storage, validation, and future advanced features (indexes, searches, views, etc.).

Last updated