<?php

namespace App\Models;

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

class NotificationLog extends Model
{
    protected $fillable = [
        'order_id',
        'type',
        'channel',
        'recipient',
        'message_preview',
        'status',
        'error_message',
    ];

    /**
     * Get the order associated with this notification log.
     */
    public function order(): BelongsTo
    {
        return $this->belongsTo(Order::class);
    }
}
