id(); $table->uuid("uuid"); $table->string("container", 511)->nullable(); $table->string("name"); $table->boolean("public")->default(false); $table->dateTime("start")->nullable(); $table->dateTime("end")->nullable(); $table->unsignedBigInteger("service_id"); $table->unsignedBigInteger("user_id"); $table->unsignedBigInteger("status_id"); $table->timestamps(); $table->foreign("service_id")->references("id")->on("services"); $table->foreign("user_id")->references("id")->on("users"); $table->foreign("status_id")->references("id")->on("statuses"); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('servers'); } };