feat:인터뷰 시나리오 관리 기능 추가
- InterviewScenarioController: 카테고리/항목/질문 CRUD + 세션 관리 API - InterviewScenarioService: 비즈니스 로직 (트리 조회, 세션 시작/토글/완료) - MNG 모델 5개: InterviewCategory, InterviewTemplate, InterviewQuestion, InterviewSession, InterviewAnswer - React 뷰: 2-패널 레이아웃 (카테고리 사이드바 + 항목/질문 관리) - 인터뷰 실시 모달: 카테고리 선택 → 체크리스트 → 완료 - 인터뷰 기록 모달: 기록 목록 + 상세 보기 - InterviewMenuSeeder: 영업관리 > 인터뷰 시나리오 메뉴 추가 - 라우트 18개 추가 (sales/interviews/api/*) 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