<?php

namespace App\Models;

use App\Traits\Blameable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Altek\Accountant\Contracts\Recordable;

class ExclusionRules extends Model
{
    use HasFactory, SoftDeletes, Blameable;

    protected $fillable = [
        'exclusion_id',
        'name',
        'values',
    ];
    
    protected $hidden = [
        'created_at',
        'updated_at',
        'deleted_at',
        'created_by',
        'updated_by',
        'deleted_by',
    ];

    public function exclusion()
    {
        return $this->belongsTo(Exclusion::class, 'exclusion_id');
    }
}
