Build Laravel 13 ticket assistant with Docker, Livewire admin, and helpdesk scraper command
This commit is contained in:
27
app/Models/AIDecision.php
Normal file
27
app/Models/AIDecision.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class AIDecision extends Model
|
||||
{
|
||||
protected $table = 'ai_decisions';
|
||||
|
||||
protected $fillable = ['ticket_id', 'article_id', 'confidence', 'explanation', 'raw_response'];
|
||||
|
||||
protected $casts = [
|
||||
'raw_response' => 'array',
|
||||
];
|
||||
|
||||
public function ticket(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Ticket::class);
|
||||
}
|
||||
|
||||
public function article(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Article::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user