<?php

namespace Modules\GuidedTour\Entities;

use Illuminate\Database\Eloquent\Model;

class TourStep extends Model
{
    protected $table = 'tour_steps';

    protected $fillable = [
        'flow_id', 'sort_order', 'route', 'target_selector',
        'title', 'body_html', 'media_id', 'placement',
    ];

    public function flow()
    {
        return $this->belongsTo(TourFlow::class, 'flow_id');
    }

    public function media()
    {
        return $this->belongsTo(TourMedia::class, 'media_id');
    }
}
