feat: [공정관리] parent_id 트리 구조 도입 — 마이그레이션, 모델 관계, 2depth 검증
This commit is contained in:
@@ -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:생산,검사,포장,조립'],
|
||||
|
||||
Reference in New Issue
Block a user