- 6단계 영업 프로세스 체크리스트 UI 구현 - 사용자별 체크포인트 저장/조회 API 추가 - 레거시 스타일 가로 아코디언 UI 적용 - 단계별 진행률 표시 및 꿀팁 모달 추가
38 lines
706 B
PHP
38 lines
706 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Traits\BelongsToTenant;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
/**
|
|
* 영업 시나리오 체크리스트 모델
|
|
*/
|
|
class SalesScenarioChecklist extends Model
|
|
{
|
|
use BelongsToTenant;
|
|
|
|
protected $fillable = [
|
|
'tenant_id',
|
|
'user_id',
|
|
'step_id',
|
|
'checkpoint_index',
|
|
'is_checked',
|
|
];
|
|
|
|
protected $casts = [
|
|
'step_id' => 'integer',
|
|
'checkpoint_index' => 'integer',
|
|
'is_checked' => 'boolean',
|
|
];
|
|
|
|
/**
|
|
* 사용자 관계
|
|
*/
|
|
public function user(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
}
|