Skip to main content

Event and Activity Model

Source: equa-server/modules/activity/, equa-server/modules/persistence/src/schema.ts

Overview

Equa tracks user activity through three complementary mechanisms:
  1. Actions — High-level user actions within organizations
  2. Event Logs — Detailed event records with JSON payloads
  3. Tasks — Workflow status tracking for multi-step operations

Entities

Actions

Source: equa-server/modules/persistence/src/schema.ts (Actions entity)
FieldTypeDescription
organizationuuid (nullable)Organization context
typeuuidAction type identifier
useruuidUser who performed the action
Tracked via equa-server/modules/activity/ and surfaced in the organization dashboard.

Event Logs

Source: equa-server/modules/persistence/src/schema.ts (EventLogs entity)
FieldTypeDescription
iduuidUnique event identifier
typestringEvent type (e.g., “login”, “share_transfer”)
useruuid (nullable)User who triggered the event
organizationuuid (nullable)Organization context
datajsonArbitrary event payload
Event logs capture granular platform activity with structured JSON payloads for audit and debugging purposes.

Tasks

Source: equa-server/modules/persistence/src/schema.ts (Tasks entity)
FieldTypeDescription
entityuuidTarget entity ID
typeTaskTypeTask type enum
statusTaskStatusCurrent status enum
Used for tracking multi-step operations like option exercises (TasksExerciseOption).

Activity Flow

Frontend Display

The organization dashboard (equa-web/src/modules/organization-dashboard/) displays recent actions for the active organization, providing visibility into team activity.

Audit Trail Gaps

The current event logging system does not provide:
  • Immutable log storage (logs can be deleted)
  • Comprehensive coverage of all state changes
  • Structured audit trail with before/after states
  • Log export or compliance reporting
These gaps are documented in the Compliance: Audit Trail Design specification.