<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class VoidLog extends Model
{
    protected $fillable = [
        'user_id', 'authorized_by', 'type', 'product_name', 'quantity', 'amount', 'reason'
    ];

    public function user()         { return $this->belongsTo(User::class); }
    public function authorizedBy() { return $this->belongsTo(User::class, 'authorized_by'); }
}
