<?php

namespace App;

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

class ControlAccount extends Model
{
    protected $table = 'control_account';
    protected $primaryKey = 'id_control_account';

    public function subControlAccounts()
    {
        return $this->hasMany(SubControlAccount::class, 'control_account_id', 'id_control_account');
    }
}
