uuid('id')->primary()->default(DB::raw('uuid_generate_v1mc()')); $table->string('name',256)->index(); $table->string('case',16)->nullable()->index(); $table->json('to')->nullable(); $table->uuid('editor_id'); $table->timestamps(); $table->unique(["name", "case"]); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('relations'); } }