- InterviewProject/Attachment/Knowledge 모델 3개 신규 - 기존 모델 확장 (Question, Answer, Session, Category) - 서비스 확장: 프로젝트 CRUD, 첨부파일, 지식 관리 - 컨트롤러 확장: 프로젝트/첨부/지식 API 엔드포인트 - 라우트 20개 추가 (프로젝트, 첨부, 지식) - InterviewQuestionMasterSeeder: 8개 도메인 80개 질문 - UI 확장: 프로젝트 모드/기존 모드 전환 - 프로젝트 선택 바, 상태 바, 도메인 사이드바 - 탭 구조 (질문편집/인터뷰/첨부파일/추출지식) - 구조화 답변 입력 (테이블, 수식, 다중선택 등) - 첨부파일 업로드/관리 - 지식 수동 추가/검증/필터링
45 lines
957 B
PHP
45 lines
957 B
PHP
<?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',
|
|
'answer_data',
|
|
'attachments',
|
|
'memo',
|
|
];
|
|
|
|
protected $casts = [
|
|
'is_checked' => 'boolean',
|
|
'answer_data' => 'array',
|
|
'attachments' => 'array',
|
|
];
|
|
|
|
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');
|
|
}
|
|
}
|