id(); $table->string("number")->unique(); $table->unsignedTinyInteger("ppn"); $table->enum("status", ["pending", "success"]); $table->foreignId("customer_id")->constrained(); $table->foreignId("user_id")->constrained(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists("sales"); } };