Files
echoscoop/app/Models/NewsSerpResult.php

60 lines
1.2 KiB
PHP

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class NewsSerpResult
*
* @property int $id
* @property int $category_id
* @property string $category_name
* @property string $serp_provider
* @property string $serp_se
* @property string $serp_se_type
* @property string $serp_keyword
* @property string $serp_country_iso
* @property float|null $serp_cost
* @property int|null $result_count
* @property string $filename
* @property string $status
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property Category $category
*/
class NewsSerpResult extends Model
{
protected $table = 'news_serp_results';
protected $casts = [
'category_id' => 'int',
'serp_cost' => 'float',
'result_count' => 'int',
];
protected $fillable = [
'category_id',
'category_name',
'serp_provider',
'serp_se',
'serp_se_type',
'serp_keyword',
'serp_country_iso',
'serp_cost',
'result_count',
'filename',
'status',
];
public function category()
{
return $this->belongsTo(Category::class);
}
}