<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Stock extends Model
{
    use HasFactory;

     protected $fillable = [
        'product_id',
        'availability_status',
        'quantity',
        'requires_approval',
        'is_approved',
        'approved_by',
        'estimated_time_of_arrival_date',
        'next_arrival_date',
        'last_arrival_date',
        'expected_restock_date',
    ];

      public function product() {
        return $this->belongsTo(Product::class);
    }
}
