You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
629 B
33 lines
629 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class CrawlJobItem extends Model
|
|
{
|
|
protected $fillable = [
|
|
'crawl_job_id',
|
|
'external_id',
|
|
'canonical_url',
|
|
'title',
|
|
'payload',
|
|
'status',
|
|
'target_type',
|
|
'source_name',
|
|
'target_id',
|
|
];
|
|
|
|
protected $casts = [
|
|
'crawl_job_id' => 'integer',
|
|
'payload' => 'array',
|
|
'target_id' => 'integer',
|
|
];
|
|
|
|
public function crawlJob(): BelongsTo
|
|
{
|
|
return $this->belongsTo(CrawlJob::class);
|
|
}
|
|
}
|