<?php

namespace App\Models\Accounting;

use App\Models\User;
use Illuminate\Database\Eloquent\Model;

class TypeOfAccDetail extends Model
{
    protected $table = 'type_of_acc_details';
    protected $fillable = [
        'id',
        'name',
        'type_of_acc_id',
        'remark',
        'created_by',
        'deleted_at',
        'created_at',
        'updated_at',
    ];

    public function createdBy()
    {
        return $this->belongsTo(User::class, 'created_by');
    }
}
