<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;

class ExpenseCategory extends Model
{
    protected $fillable = ['business_id','name','code','description','status'];

    public function business(): BelongsTo { return $this->belongsTo(Business::class); }
    public function expenses(): HasMany { return $this->hasMany(Expense::class); }
    public function recurringExpenses(): HasMany { return $this->hasMany(RecurringExpense::class); }
}