feat: [공정관리] parent_id 트리 구조 도입 — 마이그레이션, 모델 관계, 2depth 검증

This commit is contained in:
김보곤
2026-03-21 15:23:54 +09:00
parent cce4798643
commit 1577d028dc
5 changed files with 88 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ public function authorize(): bool
public function rules(): array
{
return [
'parent_id' => ['nullable', 'integer', 'exists:processes,id'],
'process_name' => ['required', 'string', 'max:100'],
'description' => ['nullable', 'string'],
'process_type' => ['required', 'string', 'in:생산,검사,포장,조립'],