<?php

declare(strict_types=1);

namespace App\Models;

use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Model;

/**
 * @property string $id
 * @property string|null $tenant_id
 * @property string $provider
 * @property string $event_type
 * @property array $payload
 */
class PaymentWebhook extends Model
{
    use HasUuids;

    protected $fillable = [
        'tenant_id',
        'provider',
        'event_type',
        'payload',
        'signature',
        'processed_at',
    ];

    protected $casts = [
        'payload' => 'array',
        'processed_at' => 'datetime',
    ];
}
