<?php

namespace App\Models\Person;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class PersonType extends Model
{
    /** @use HasFactory<\Database\Factories\Person/PersonTypeFactory> */
    use HasFactory;

    protected $fillable = [
        'name',
        'description',
    ];

    public function persons(): HasMany
    {
        return $this->hasMany(\App\Models\Person\Person::class);
    }
}
