<?php

namespace App\Models;

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

class CoachReview extends Model
{
    use HasFactory;

    protected $fillable = [
        'video_id',
        'user_id',
        'start_time_seconds',
        'end_time_seconds',
        'note',
        'coach_name',
        'emoji',
    ];

    public function video(): BelongsTo
    {
        return $this->belongsTo(Video::class);
    }

    public function user(): BelongsTo
    {
        return $this->belongsTo(User::class);
    }
}
