<?php

namespace App\Models\Performance;

use App\Models\coreApp\BaseModel;
use App\Models\Traits\BranchTrait;
use App\Models\Traits\CompanyTrait;
use App\Models\coreApp\Status\Status;
use App\Models\Performance\Competence;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class CompetenceType extends BaseModel
{
    use HasFactory,BranchTrait,CompanyTrait;

    public function competencies()
    {
        return $this->hasMany(Competence::class, "competence_type_id", "id");
    }

    public function status(): BelongsTo
    {
        return $this->belongsTo(Status::class);
    }
}
