22 lines
421 B
PHP
22 lines
421 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Casts\VectorCast;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
class Article extends Model
|
|
{
|
|
protected $fillable = ['title', 'content', 'embedding'];
|
|
|
|
protected $casts = [
|
|
'embedding' => VectorCast::class,
|
|
];
|
|
|
|
public function decisions(): HasMany
|
|
{
|
|
return $this->hasMany(AIDecision::class);
|
|
}
|
|
}
|