Files
aibuddytool/app/Models/SearchResult.php
2023-11-28 04:39:36 +08:00

42 lines
775 B
PHP

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Pgvector\Laravel\Vector;
/**
* Class SearchResult
*
* @property int $id
* @property string $query
* @property USER-DEFINED|null $embedding
* @property Carbon|null $indexed_at
* @property int $counts
* @property string $country_iso
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
*/
class SearchResult extends Model
{
protected $table = 'search_results';
protected $casts = [
'embedding' => Vector::class,
'indexed_at' => 'datetime',
'counts' => 'int',
];
protected $fillable = [
'query',
'embedding',
'indexed_at',
'counts',
];
}