feat: [process] 공정단계 options 컬럼 추가 — 검사 설정/범위 지원

- ProcessStep 모델에 options JSON 컬럼 추가 (fillable, cast)
- Store/UpdateProcessStepRequest에 inspection_setting, inspection_scope 검증 규칙
- process_steps 테이블 마이그레이션

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 11:01:01 +09:00
parent cd847e01a0
commit 1f7f45ee60
4 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('process_steps', function (Blueprint $table) {
$table->json('options')->nullable()->after('completion_type')
->comment('검사설정, 검사범위 등 추가 옵션 JSON');
});
}
public function down(): void
{
Schema::table('process_steps', function (Blueprint $table) {
$table->dropColumn('options');
});
}
};