feat: [재고] 적정재고 관리 기능 추가 (max_stock + over 상태 + update API)

This commit is contained in:
김보곤
2026-03-21 07:59:53 +09:00
parent 5860262d87
commit 244a1f7a24
5 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('stocks', function (Blueprint $table) {
$table->decimal('max_stock', 15, 3)->default(0)
->comment('최대 재고 (적정재고 상한)')
->after('safety_stock');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('stocks', function (Blueprint $table) {
$table->dropColumn('max_stock');
});
}
};