<?php

namespace App\Models;

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

class Telefono extends Model
{
    use HasFactory;
    protected $table = 'telefonos';
    
    protected $fillable = [
        'telefono',
    ];

    public function persona() 
    {
        return $this->belongsToMany(Persona::class, 'personas_telefonos', 'telefono_id', 'persona_id');
    }
}
