Phase 2: Implement Domain & Mailbox persistence, Analytics, and fix pagination issues

This commit is contained in:
idevakk
2026-03-05 20:19:30 +05:30
parent b981b6998f
commit 60b87a3609
23 changed files with 1037 additions and 256 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use MongoDB\Laravel\Eloquent\Model;
class AnalyticsEvent extends Model
{
protected $connection = 'mongodb';
protected $collection = 'analytics_events';
protected $fillable = [
'event_type',
'mailbox_hash',
'domain_hash',
'user_type',
'user_id',
'ip_address',
'user_agent',
'metadata',
];
protected function casts(): array
{
return [
'metadata' => 'array',
];
}
}