38 lines
884 B
PHP
38 lines
884 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class ContentModerationAiSuggestion extends Model
|
|
{
|
|
protected $table = 'content_moderation_ai_suggestions';
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'finding_id',
|
|
'provider',
|
|
'suggested_label',
|
|
'suggested_action',
|
|
'confidence',
|
|
'explanation',
|
|
'campaign_tags_json',
|
|
'raw_response_json',
|
|
'created_at',
|
|
];
|
|
|
|
protected $casts = [
|
|
'finding_id' => 'integer',
|
|
'confidence' => 'integer',
|
|
'campaign_tags_json' => 'array',
|
|
'raw_response_json' => 'array',
|
|
'created_at' => 'datetime',
|
|
];
|
|
|
|
public function finding(): BelongsTo
|
|
{
|
|
return $this->belongsTo(ContentModerationFinding::class, 'finding_id');
|
|
}
|
|
} |