This commit is contained in:
2023-11-28 04:39:36 +08:00
parent a9ac0e48b3
commit dc37274b6c
86 changed files with 2106 additions and 191 deletions

View File

@@ -0,0 +1,41 @@
<?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',
];
}