<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * WHMCS admin user mirror. Source for AgentRotator persona resolution +
 * the WHMCS-admin picker in routing rules. Refreshed every 6 h.
 */
class WhmcsAdminUser extends Model
{
    protected $fillable = [
        'whmcs_id', 'username', 'full_name', 'email',
        'disabled', 'raw', 'last_synced_at',
    ];

    protected $casts = [
        'disabled'       => 'boolean',
        'raw'            => 'array',
        'last_synced_at' => 'datetime',
    ];
}
