id(); $table->unsignedBigInteger('order_id'); $table->enum('status', ['payed', 'waiting', 'refused'])->default('waiting'); $table->integer('amount')->default(0); $table->string('payment_system')->nullable(); $table->string('transaction_id')->nullable(); $table->softDeletes(); $table->timestamps(); $table->foreign('order_id')->references('id')->on('orders'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('billings'); } }