This commit is contained in:
2023-11-26 18:56:40 +08:00
parent be14f5fdb1
commit 64431e7a73
144 changed files with 497072 additions and 3730 deletions

47
app/Models/UrlToCrawl.php Normal file
View File

@@ -0,0 +1,47 @@
<?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',
];
protected $fillable = [
'domain',
'url',
'is_crawling',
'is_crawled',
'output_type',
'output',
'metadata',
'status',
];
}