<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class DocumentoTipo extends Model
{
    protected $guarded = [];
    public $timestamps = false;

    protected $casts = [
        'extensiones' => 'array',
    ];

    public function niveles()
    {
        return $this->belongsToMany(
            Nivel::class,
            'nivel_documento',
            'documento_tipo_id',
            'nivel_id'
        );
    }
}
