32 lines
620 B
PHP
32 lines
620 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class SearchMetric extends Model
|
|
{
|
|
protected $table = 'search_metrics';
|
|
|
|
protected $fillable = [
|
|
'searched_at',
|
|
'search_string',
|
|
'category_ids',
|
|
'total_results',
|
|
'execution_time',
|
|
'locale',
|
|
'user_type',
|
|
'country_id',
|
|
'division_id',
|
|
'city_id',
|
|
'district_id',
|
|
];
|
|
|
|
protected $casts = [
|
|
'searched_at' => 'datetime',
|
|
'category_ids' => 'array',
|
|
'total_results' => 'integer',
|
|
'execution_time' => 'float',
|
|
];
|
|
}
|