<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class PaymentProofReview extends Model
{
    public const UPDATED_AT = null;

    protected $fillable = [
        'subscription_payment_id', 'reviewer_id', 'action',
        'from_status', 'to_status', 'note', 'ip',
    ];

    public function payment(): BelongsTo
    {
        return $this->belongsTo(SubscriptionPayment::class, 'subscription_payment_id');
    }

    public function reviewer(): BelongsTo
    {
        return $this->belongsTo(User::class, 'reviewer_id');
    }
}
