37 lines
633 B
PHP
37 lines
633 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Pgvector\Laravel\Vector;
|
|
|
|
/**
|
|
* Class KeywordEmbedding
|
|
*
|
|
* @property int $id
|
|
* @property string $keyword
|
|
* @property USER-DEFINED $embedding
|
|
* @property string|null $tag
|
|
* @property Carbon|null $created_at
|
|
* @property Carbon|null $updated_at
|
|
*/
|
|
class KeywordEmbedding extends Model
|
|
{
|
|
protected $table = 'keyword_embeddings';
|
|
|
|
protected $casts = [
|
|
'embedding' => Vector::class,
|
|
];
|
|
|
|
protected $fillable = [
|
|
'keyword',
|
|
'embedding',
|
|
'tag',
|
|
];
|
|
}
|