private static function createMediaRelationsTable($postTypeSlug)
    {
        Schema::create(
            $postTypeSlug."_media", function ($table) use ($postTypeSlug) {
                // create general fields
                $table->bigIncrements("mediaRelationID");
                $table->bigInteger("postID")->unsigned()->nullable();
                $table->unsignedInteger("mediaID")->nullable();
                $table->json("language")->nullable();
                $table->string("field", 60)->nullable();

                $table->foreign('postID')
                    ->references('postID')->on($postTypeSlug)
                    ->onDelete('cascade');

                $table->foreign('mediaID')
                    ->references('mediaID')->on("media")
                    ->onDelete('cascade');
            }
        );
    }