<?php

namespace App\Models;

use App\Models\traits\Filter;
use Illuminate\Database\Eloquent\Model;

class LossRecords extends Model
{

    use Filter;

    protected $table = 'loss_records';
    protected $guarded = [];
    public $fieldSearchable = [
        'external_sku_id',
    ];

    public function goodsSku()
    {
        return $this->belongsTo(GoodsSku::class, 'external_sku_id', 'external_sku_id');
    }
}
