id()->comment('PK'); $table->foreignId('subscription_id')->constrained('subscriptions')->comment('구독ID'); $table->decimal('amount', 12, 2)->comment('결제금액'); $table->string('payment_method', 30)->comment('결제수단'); $table->string('transaction_id', 100)->nullable()->comment('PG 거래ID'); $table->dateTime('paid_at')->comment('결제일시'); $table->string('status', 20)->default('paid')->comment('결제상태(paid, failed 등)'); $table->text('memo')->nullable()->comment('비고'); $table->timestamps(); $table->softDeletes(); }); } public function down(): void { Schema::dropIfExists('payments'); } };