<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

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

/**
 * Class UrlToCrawl
 *
 * @property int $id
 * @property string $domain
 * @property string $url
 * @property bool $is_crawling
 * @property bool $is_crawled
 * @property string|null $output_type
 * @property string|null $output
 * @property string|null $metadata
 * @property string $status
 * @property Carbon|null $created_at
 * @property Carbon|null $updated_at
 */
class UrlToCrawl extends Model
{
    protected $table = 'url_to_crawls';

    protected $casts = [
        'is_crawling' => 'bool',
        'is_crawled' => 'bool',
        'metadata' => 'object',
        'crawl_counts' => 'integer',
    ];

    protected $fillable = [
        'domain',
        'url',
        'is_crawling',
        'is_crawled',
        'output_type',
        'output',
        'metadata',
        'status',
        'crawl_counts',
    ];
}
