πŸ“˜ ActivityLog

This model captures what happened, who did it, when, and where β€” a complete activity audit trail.

πŸ“˜ ActivityLog

🧩 Fields:

  • πŸ†” id Unique identifier for each log entry (uses BigInteger for large scale logs).

  • πŸ‘€ user_id Foreign key to the user who performed the action (required).

  • 🎯 object_user_id Optional foreign key to the target user affected by the action (if applicable).

  • πŸ—οΈ project_id Optional foreign key to the related project.

  • βœ… task_id Optional foreign key to the related task.

  • πŸ” microtask_id Optional foreign key to the related microtask.

  • πŸ“Ž file_id Optional foreign key to the file involved in the action.

  • πŸ’¬ groupchat_id Optional foreign key to the group chat related to the action.

  • ⏰ timestamp When the action occurred (required).

  • πŸ› οΈ action The type of action (e.g., "created", "edited", "deleted") β€” required. Has a defined set of options, which can be found here. Enum type helps keep this consistent

  • πŸ“ changes Optional text field to describe details of the modification (e.g., "title changed from A to B").

Last updated