id(); $table->foreignIdFor(App\Models\User::class)->constrained()->cascadeOnDelete(); $table->string('currency_code', 3); $table->decimal('amount', 17, 2); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('credits'); } };