id(); $table->foreignId('from_character_id')->nullable()->constrained('characters')->nullOnDelete(); $table->foreignId('to_character_id')->nullable()->constrained('characters')->nullOnDelete(); $table->foreignId('store_id')->nullable()->constrained('stores')->nullOnDelete(); $table->string('item', 40); $table->unsignedInteger('qty')->default(1); $table->decimal('amount', 12, 2)->default(0); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('transactions'); } };