<?php

namespace App\Models\Project;

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

class Budget extends Model
{
    use HasFactory;
    protected $table = 'budgets';
    protected $primaryKey = 'id';

    // relations starts from here.
    public function expanses()
    {
        return $this->hasMany(Invoice_main::class, 'budget_id', 'id');
    }
}

