<?php

namespace App\Models;

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

class PollVote extends Model
{
    protected $table = 'meet_poll_votes';

    protected $fillable = ['poll_id', 'participant_uuid', 'option_index'];

    public function poll(): BelongsTo
    {
        return $this->belongsTo(MeetPoll::class, 'poll_id');
    }
}
