<?php

namespace App\Models;

use App\Models\Concerns\BelongsToOwner;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Reaction extends Model
{
    use BelongsToOwner;

    protected $table = 'meet_reactions';

    protected $fillable = [
        'owner_ref', 'session_id', 'participant_ref', 'sender_name', 'emoji',
    ];

    public function session(): BelongsTo
    {
        return $this->belongsTo(Session::class, 'session_id');
    }
}
