<?php

namespace App\Models\ACCOUNTING;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use OwenIt\Auditing\Contracts\Auditable;
use App\Models\ACCOUNTING\Accountingentry;

class Account extends Model implements Auditable
{
     use HasFactory,  \OwenIt\Auditing\Auditable;

     protected $fillable = [
        'name',
        'code',
        'type',
        'description',
        'status',
    ];

    public function accountingentries(){
        return $this->hasMany(Accountingentry::class);
    }

}
