id(); $table->string('status')->default('pending'); $table->date('due_at')->nullable(); $table->string('currency_code', 3); $table->foreignIdFor(\App\Models\User::class)->constrained()->cascadeOnDelete(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('invoices'); } };