<?php

namespace App\Models;

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

class Stock_opname extends Model
{
    use HasFactory;
    protected $table = 'stock_opname';
    protected $fillable = ['stock_id', 'jumlah_awal', 'jumlah_akhir', 'selisih', 'catatan'];

    public function stock()
    {
        return $this->belongsTo(Stock::class);
    }
}
