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:- Actions — High-level user actions within organizations
- Event Logs — Detailed event records with JSON payloads
- Tasks — Workflow status tracking for multi-step operations
Entities
Actions
Source:equa-server/modules/persistence/src/schema.ts (Actions entity)
| Field | Type | Description |
|---|---|---|
organization | uuid (nullable) | Organization context |
type | uuid | Action type identifier |
user | uuid | User who performed the action |
equa-server/modules/activity/ and surfaced in the organization dashboard.
Event Logs
Source:equa-server/modules/persistence/src/schema.ts (EventLogs entity)
| Field | Type | Description |
|---|---|---|
id | uuid | Unique event identifier |
type | string | Event type (e.g., “login”, “share_transfer”) |
user | uuid (nullable) | User who triggered the event |
organization | uuid (nullable) | Organization context |
data | json | Arbitrary event payload |
Tasks
Source:equa-server/modules/persistence/src/schema.ts (Tasks entity)
| Field | Type | Description |
|---|---|---|
entity | uuid | Target entity ID |
type | TaskType | Task type enum |
status | TaskStatus | Current status enum |
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.