feat:인터뷰 시나리오 마이그레이션/모델 추가
- interview_categories, interview_templates, interview_questions 테이블 생성 - interview_sessions, interview_answers 테이블 생성 - InterviewCategory, InterviewTemplate, InterviewQuestion 모델 추가 - InterviewSession, InterviewAnswer 모델 추가 - 멀티테넌트(tenant_id) 지원, 감사 로깅(Auditable) 적용 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
40
app/Models/Interview/InterviewAnswer.php
Normal file
40
app/Models/Interview/InterviewAnswer.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Interview;
|
||||
|
||||
use App\Traits\BelongsToTenant;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class InterviewAnswer extends Model
|
||||
{
|
||||
use BelongsToTenant;
|
||||
|
||||
protected $fillable = [
|
||||
'tenant_id',
|
||||
'interview_session_id',
|
||||
'interview_question_id',
|
||||
'interview_template_id',
|
||||
'is_checked',
|
||||
'answer_text',
|
||||
'memo',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'is_checked' => 'boolean',
|
||||
];
|
||||
|
||||
public function session()
|
||||
{
|
||||
return $this->belongsTo(InterviewSession::class, 'interview_session_id');
|
||||
}
|
||||
|
||||
public function question()
|
||||
{
|
||||
return $this->belongsTo(InterviewQuestion::class, 'interview_question_id');
|
||||
}
|
||||
|
||||
public function template()
|
||||
{
|
||||
return $this->belongsTo(InterviewTemplate::class, 'interview_template_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user