<?php

namespace App\Models;

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

class Supplier extends Model
{
    use HasFactory;
    protected $fillable = [
        'ruc',
        'razon_social',
        'direccion',
        'departamento',
        'provincia',
        'distrito',
        'estado',
        'condicion',
        'tipodocumento',
        'phone',
    ];

    public function accounts()
    {
        return $this->hasMany(Account::class, 'id_supplier');
    }
    
    
}
