From 0d1b088463d19374ef1fb5f710c3d9f2024f958f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Wed, 4 Feb 2026 22:37:35 +0900 Subject: [PATCH] =?UTF-8?q?feat:=ED=99=98=EB=B6=88/=ED=95=B4=EC=A7=80=20?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20=ED=85=8C=EC=9D=B4=EB=B8=94=20=EB=A7=88?= =?UTF-8?q?=EC=9D=B4=EA=B7=B8=EB=A0=88=EC=9D=B4=EC=85=98=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.5 --- ...2026_02_04_223406_create_refunds_table.php | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 database/migrations/2026_02_04_223406_create_refunds_table.php diff --git a/database/migrations/2026_02_04_223406_create_refunds_table.php b/database/migrations/2026_02_04_223406_create_refunds_table.php new file mode 100644 index 0000000..9c1466c --- /dev/null +++ b/database/migrations/2026_02_04_223406_create_refunds_table.php @@ -0,0 +1,35 @@ +id(); + $table->unsignedBigInteger('tenant_id'); + $table->string('type', 20)->default('refund'); // refund, cancel + $table->string('customer_name', 100); + $table->date('request_date'); + $table->string('product_name', 100); + $table->bigInteger('original_amount')->default(0); + $table->bigInteger('refund_amount')->default(0); + $table->string('reason', 100)->nullable(); + $table->string('status', 20)->default('pending'); // pending, approved, completed, rejected + $table->date('process_date')->nullable(); + $table->text('note')->nullable(); + $table->timestamps(); + $table->softDeletes(); + $table->index(['tenant_id', 'status']); + $table->index(['tenant_id', 'type']); + }); + } + + public function down(): void + { + Schema::dropIfExists('refunds'); + } +};