Description
Create an activity logging system that tracks all important actions in the application (create, update, delete) for auditing and notification purposes.
Tasks
Database Schema
The activity_logs table already exists with:
action - The type of action performed
entity_type - The type of entity affected
entity_id - The ID of the entity affected
metadata - JSON field for additional context
user_id, project_id, task_id - Associations
Acceptance Criteria
- All CRUD operations automatically create activity log entries
- Activity logs are viewable in the dashboard
- Logs include proper metadata about what changed
- Users can filter activity logs by entity and date range
- Activity logs are properly secured with RLS
Description
Create an activity logging system that tracks all important actions in the application (create, update, delete) for auditing and notification purposes.
Tasks
/api/activity-logs)Database Schema
The
activity_logstable already exists with:action- The type of action performedentity_type- The type of entity affectedentity_id- The ID of the entity affectedmetadata- JSON field for additional contextuser_id,project_id,task_id- AssociationsAcceptance Criteria