Sync
This commit is contained in:
41
app/Models/SearchResult.php
Normal file
41
app/Models/SearchResult.php
Normal 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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user