<?php

namespace App\Models;

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

class PlanModuleMapping extends Model
{
    use HasFactory;
    protected $fillable = [
        'plan_id',
        'module_code',
        'parent_module_code',
        'priority',
        'status'
    ];
    public function getModuleCode()
    {
        return $this->belongsTo(MenuModelPermission::class,'module_code');
    }
}
