• Data modelling

    Field types

    The entity fields should be in one of the following categories: id (usually indexable) primitives (int, string, decimal) list of primitives other entity owned only by the parent (example: unit of measure) list…

  • Data modelling

    Named entity

    It is an entity that implements the descript able entity and features a field (string) called name. Use it to implement Enums (see below). Enums Postgres and TypeORM support enums. Business logic will…

  • Data modelling

    Base entity

    Base entity The entity base class will have the following mandatory fields: id (always primary key) deleted (soft delete flag) extension (custom fields requested by the implementation)

  • API,  Data modelling

    Cache

    Some fields and entities could be marked as cacheable. Those entities will be refreshed when a modify operation took place on that specific entity. For example, an updated event is raised for an…

  • Data modelling

    Base entities

    All entities will have the soft delete implementation. The base data access implementation will take care to only read the non-deleted entities. All entities will be implementations of a base class that will…