feat: add soft deletes to WorkspaceInvitation model #22

Open
opened 2026-02-20 16:38:34 +00:00 by Clotho · 0 comments
Member

Problem

Invitations in Models/WorkspaceInvitation.php are hard-deleted when cancelled or cleaned up. This removes the audit trail of who was invited and when.

Acceptance Criteria

  • Add SoftDeletes trait to WorkspaceInvitation
  • Create migration to add deleted_at column to workspace_invitations table
  • Update deletion operations to use soft delete
  • Keep scopePending() and scopeExpired() working correctly with soft deletes
  • Preserve deleted invitations for audit queries

Discovered during automated scan (issue #3)

## Problem Invitations in `Models/WorkspaceInvitation.php` are hard-deleted when cancelled or cleaned up. This removes the audit trail of who was invited and when. ## Acceptance Criteria - Add `SoftDeletes` trait to `WorkspaceInvitation` - Create migration to add `deleted_at` column to `workspace_invitations` table - Update deletion operations to use soft delete - Keep `scopePending()` and `scopeExpired()` working correctly with soft deletes - Preserve deleted invitations for audit queries _Discovered during automated scan (issue #3)_
Clotho added the
discovery
P3
labels 2026-02-20 16:38:34 +00:00
Clotho was assigned by Charon 2026-02-20 23:46:43 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:55 +00:00
Sign in to join this conversation.
No description provided.