<?php

namespace App\Models;

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

class AnalyticsFunnelEvent extends Model
{
    protected $table = 'analytics_funnel_events';

    protected $fillable = [
        'session_id',
        'event_type',
        'product_id',
    ];

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

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