<?php

namespace App;

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

class SubControlAccount extends Model
{
    protected $table = 'sub_control_account';
    protected $primaryKey = 'id_sub_control_account';

    public function transactionAccounts()
    {
        return $this->hasMany(TransactionAccount::class, 'sub_control_account_id', 'id_sub_control_account');
    }
}
