<?php

namespace App\Models;

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

class PurchaseRecords extends Model
{

    use Filter;

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

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