<?php

namespace App\Models;

use App\Traits\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;

class Vendor extends Model
{
    use BelongsToTenant;

    protected $fillable = [
        'tenant_id',
        'vendor_code',
        'name',
        'vendor_type',
        'trn',
        'email',
        'mobile',
        'status',
    ];

    public function expenses()
    {
        return $this->hasMany(Expense::class);
    }
}
