<?php

namespace App\Modules\HR\Training\Models;

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

class TrainingCourse extends Model
{
    use BelongsToTenant;

    protected $table = 'hr_training_courses';

    protected $guarded = ['id'];

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