id(); $table->uuid(); $table->string('trans')->nullable(); $table->integer('amount')->nullable(); $table->string('public_code')->nullable(); $table->foreignId('customer_id') ->constrained('customers') ->cascadeOnDelete(); $table->tinyInteger('status')->default(0)->comment('0: pending, 1: completed, 2: fail'); $table->timestamps(); $table->softDeletes(); }); } public function down() { Schema::dropIfExists('transactions'); } };