feat: add SoftDeletes trait to WorkspaceInvitation model
Add the SoftDeletes import and trait usage so delete() calls perform soft deletes, preserving cancelled invitations for audit trail. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
940d59770d
commit
a2e2b04e2a
1 changed files with 2 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ use Core\Tenant\Database\Factories\WorkspaceInvitationFactory;
|
|||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Str;
|
||||
|
|
@ -16,6 +17,7 @@ class WorkspaceInvitation extends Model
|
|||
{
|
||||
use HasFactory;
|
||||
use Notifiable;
|
||||
use SoftDeletes;
|
||||
|
||||
protected static function newFactory(): WorkspaceInvitationFactory
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue