Files
sam-api/app/Models/ProcessStep.php
권혁성 4dd38ab14d feat: [생산지시] 전용 API + 자재투입/공정 개선
- ProductionOrder 전용 엔드포인트 (목록/통계/상세)
- 재고생산 보조공정 일반 워크플로우에서 분리
- 자재투입 replace 모드 + bom_group_key 개별 저장
- 공정단계 options 컬럼 추가 (검사 설정/범위)
- 셔터박스 prefix isStandard 파라미터 제거

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 02:57:59 +09:00

45 lines
939 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ProcessStep extends Model
{
use HasFactory;
protected $fillable = [
'process_id',
'step_code',
'step_name',
'is_required',
'needs_approval',
'needs_inspection',
'is_active',
'sort_order',
'connection_type',
'connection_target',
'completion_type',
'options',
];
protected $casts = [
'is_required' => 'boolean',
'needs_approval' => 'boolean',
'needs_inspection' => 'boolean',
'is_active' => 'boolean',
'sort_order' => 'integer',
'options' => 'array',
];
/**
* 공정
*/
public function process(): BelongsTo
{
return $this->belongsTo(Process::class);
}
}