# Activity Module

## Overview
The activity module provides metadata describing audit log entries captured throughout the platform.

## Endpoints
- `GET /activity/schema` — returns the ActivityLog entity definition, including column names and relationships. No authentication is required.

## Data Model
- **ActivityLog**
  - `id` (auto-increment integer primary key)
  - `userId` (nullable integer, FK to `users.id`)
  - `action`, `targetType`, `targetId` (integer), `metaJson`, `ipAddress`
  - `createdAt` timestamp

## Notes
- `targetId` now stores numeric identifiers so that log relations align with the new integer-based schema.
- Use this endpoint to drive dynamic admin UI grids or documentation pages; it does not expose actual log rows.
