<?php

namespace App\Modules\HR\Compensation\Models;

use App\Modules\Admin\Tenancy\Traits\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;

class CompensationType extends Model
{
    use BelongsToTenant;

    protected $guarded = ['id'];

    protected function casts(): array
    {
        return [
            'default_amount' => 'decimal:2', 'is_recurring' => 'boolean',
            'is_taxable' => 'boolean', 'is_active' => 'boolean',
        ];
    }
}
