<?php

namespace App\Models;

use App\Models\UserOrgPermission;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasOne;

class PermissionType extends Model
{
    use HasFactory;
    protected $fillable = [
        'name',
    ];

    public function userOrgPermission():HasOne
    {
        return $this->hasOne(UserOrgPermission::class);
    }
}