<?php

namespace App\Models;

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

class SubAccount5 extends Model
{
    use HasFactory;
    protected $table = "sub_accounts_5";
    protected $fillable = ['account_code','sub_name', 'parent_id'];

    public function subAccount4()
    {
        return $this->belongsTo(SubAccount4::class, 'parent_id');
    }
}