관리-도구
편집 파일: 2023_11_30_041502_create_refund_requests_table.php
<?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::create('refund_requests', function (Blueprint $table) { $table->id(); $table->integer('user_id'); $table->integer('order_id'); $table->decimal('refund_amount', 8, 2)->default(0.00); $table->text('reasone'); $table->text('account_information'); $table->enum('status', ['pending', 'rejected', 'success'])->default('pending'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('refund_requests'); } };