Draconai Documentation

dd_id_44d0fe26f8
3. App Technical

Architecture: Relations (AEM)

Overview

  • AEM = Atom–Electron–Molecule.
  • Used for structured relations with ordering/metadata.

Key Components (Legacy)

Components

  • Storage entity: - old/dracon/src/Entity/Item/Relation/AtomElectronMolecule/AemDbRelationEntity.php
  • Auto item trait: - old/dracon/src/Entity/Item/AutoItem/RelationTrait/AutoItemEntityAemRelationTrait.php
  • Electron entities:
  • - old/dracon/src/Entity/Item/Relation/AtomElectronMolecule/ConDimElectronEntity.php (rank)
  • - old/dracon/src/Entity/Item/Relation/AtomElectronMolecule/SenExpElectronEntity.php (focus/enjoyment)
  • Relation convention: - old/dracon/src/Conventions/App/RelationConvention.php

Behavior

  • Molecule = the main item that owns the structure.
  • Atom = the related item.
  • Electron = metadata (rank/order/focus).
  • Sorting uses the electron’s sorting getter (rank or focus).

Next Layer

Next

  • Implementation Notes: implementation_aem.md