Add (article): ai gen, front views

This commit is contained in:
2023-09-24 22:53:40 +08:00
parent 18705bd5e4
commit 322d680961
115 changed files with 9710 additions and 201 deletions

View File

@@ -0,0 +1,59 @@
<?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);
}
}