<?php

namespace App\Models;

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

class AppointmentParticipant extends Model
{
    use HasFactory;

    protected $fillable = [
        'appointment_id',
        'type',
        'participantable_type',
        'participantable_id',
    ];

    public function participantable()
    {
        return $this->morphTo();
    }
}
