mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 02:12:53 +00:00
28 lines
472 B
PHP
28 lines
472 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class ReportAnalysis extends AbstractModel
|
|
{
|
|
protected $table = 'report_ai_analyses';
|
|
|
|
protected $fillable = [
|
|
'rid',
|
|
'userid',
|
|
'model',
|
|
'analysis_text',
|
|
'meta',
|
|
];
|
|
|
|
protected $casts = [
|
|
'meta' => 'array',
|
|
];
|
|
|
|
public function report(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Report::class, 'rid');
|
|
}
|
|
}
|