id(); $table->foreignId('user_id')->constrained('users')->onDelete('CASCADE'); $table->foreignId('product_id')->nullable()->constrained('products')->onDelete('CASCADE'); $table->bigInteger('amount'); $table->uuid('uuid')->unique(); $table->unsignedTinyInteger('status')->default(1); $table->string('authority'); $table->string('ref_id')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('transactions'); } };