<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * Class SerpUrlResearch
 *
 * @property int $id
 * @property int $serp_url_id
 * @property string $url
 * @property string $query
 * @property string|null $content
 * @property Carbon|null $created_at
 * @property Carbon|null $updated_at
 * @property SerpUrl $serp_url
 */
class SerpUrlResearch extends Model
{
    protected $table = 'serp_url_researches';

    protected $casts = [
        'serp_url_id' => 'int',
    ];

    protected $fillable = [
        'serp_url_id',
        'url',
        'query',
        'content',
        'main_image',
    ];

    public function serp_url()
    {
        return $this->belongsTo(SerpUrl::class);
    }
}
