- 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>
40 lines
865 B
PHP
40 lines
865 B
PHP
<?php
|
|
|
|
namespace App\Models\Interview;
|
|
|
|
use App\Traits\BelongsToTenant;
|
|
use App\Traits\ModelTrait;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class InterviewQuestion extends Model
|
|
{
|
|
use BelongsToTenant, ModelTrait, SoftDeletes;
|
|
|
|
protected $fillable = [
|
|
'tenant_id',
|
|
'interview_template_id',
|
|
'question_text',
|
|
'question_type',
|
|
'options',
|
|
'is_required',
|
|
'sort_order',
|
|
'is_active',
|
|
'created_by',
|
|
'updated_by',
|
|
'deleted_by',
|
|
];
|
|
|
|
protected $casts = [
|
|
'options' => 'array',
|
|
'is_required' => 'boolean',
|
|
'is_active' => 'boolean',
|
|
'sort_order' => 'integer',
|
|
];
|
|
|
|
public function template()
|
|
{
|
|
return $this->belongsTo(InterviewTemplate::class, 'interview_template_id');
|
|
}
|
|
}
|