<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\items;

class suppliers extends Model
{
    use HasFactory;

    protected $table = "suppliers";

    protected $fillable = [
        "item_id",
        "supplierName",
        "supplierAddress",
        "supplierTelephone",
        "supplierMobile",
        "supplierEmail"
    ];

    public function items()
    {
        return $this->belongsTo(items::class, 'item_id', 'id');
    }
}
