<?php

namespace App\Models;

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

class TransactionType extends Model
{
    use HasFactory;
    
    protected $table = "transaction_types";
    protected $fillable = ["gl_account", "account_group"];

    public function generalLedger()
    {
        return $this->belongsTo(GeneralLedger::class, 'gl_account');
    }
}