<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class PlanModulo extends Model
{
    public $timestamps = false;

    protected $table = 'plan_modulos';

    protected $fillable = ['plan_id', 'modulo', 'created_at'];

    public function plan(): BelongsTo
    {
        return $this->belongsTo(Plan::class, 'plan_id');
    }
}
