42 lines
858 B
PHP
42 lines
858 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models\Interview;
|
||
|
|
|
||
|
|
use App\Traits\BelongsToTenant;
|
||
|
|
use App\Traits\ModelTrait;
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
class InterviewAiConversation extends Model
|
||
|
|
{
|
||
|
|
use BelongsToTenant, ModelTrait;
|
||
|
|
|
||
|
|
const UPDATED_AT = null;
|
||
|
|
|
||
|
|
protected $fillable = [
|
||
|
|
'tenant_id',
|
||
|
|
'interview_session_id',
|
||
|
|
'interview_project_id',
|
||
|
|
'role',
|
||
|
|
'content',
|
||
|
|
'structured_data',
|
||
|
|
'domain',
|
||
|
|
'tokens_used',
|
||
|
|
'model_used',
|
||
|
|
];
|
||
|
|
|
||
|
|
protected $casts = [
|
||
|
|
'structured_data' => 'array',
|
||
|
|
'tokens_used' => 'integer',
|
||
|
|
];
|
||
|
|
|
||
|
|
public function session()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(InterviewSession::class, 'interview_session_id');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function project()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(InterviewProject::class, 'interview_project_id');
|
||
|
|
}
|
||
|
|
}
|