id(); $table->foreignId('wallet_id')->constrained()->cascadeOnDelete()->comment('Links to wallet'); $table->decimal('amount', 15, 2)->comment('Amount transacted'); $table->enum('type', ['bet', 'win', 'deposit', 'withdrawal'])->comment('Transaction type'); $table->text('description')->nullable()->comment('Details, e.g., "Bet on Plinko"'); $table->string('hash')->comment('SHA-256 hash for validation'); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists('transactions'); } };