35 lines
697 B
PHP
35 lines
697 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class IncassoAiFeedback extends Model
|
|
{
|
|
protected $table = 'incassi_ai_feedback';
|
|
|
|
protected $fillable = [
|
|
'incasso_id',
|
|
'movimento_bancario_id',
|
|
'registrazione_id',
|
|
'ai_status',
|
|
'ai_confidenza',
|
|
'ai_payload',
|
|
'ai_note',
|
|
'user_feedback',
|
|
'created_by',
|
|
'updated_by',
|
|
];
|
|
|
|
protected $casts = [
|
|
'ai_confidenza' => 'decimal:2',
|
|
'ai_payload' => 'array',
|
|
];
|
|
|
|
public function incasso(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Incasso::class);
|
|
}
|
|
}
|