<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Supplier extends Model
{
    protected $primaryKey = 'id_supplier';
    protected $table = 'supplier';
    protected $fillable = [
        'supplier_name',
        'supplier_email',
        'supplier_address',
        'contact_person',
        'phone_1',
        'phone_2',
        'website',
        'status',
    ];
    public function servicePurchase()
    {
        return $this->hasMany(ServicePurchase::class);
        // return $this->hasMany(Products::class, 'service_purchase_id');
    }
}
