uuid('uuid')->primary(); $table->string("original_name")->nullable(); $table->string("ext"); $table->string("mimetype"); $table->string("server_path"); $table->bigInteger("width")->nullable(); $table->bigInteger("height")->nullable(); $table->bigInteger("file_size")->nullable(); $table->bigInteger("sort")->nullable(); $table->json("alts")->nullable(); $table->unsignedBigInteger("model_id")->nullable(); $table->string("description")->nullable(); $table->unsignedBigInteger("user_id")->nullable(); $table->string("ip")->nullable(); $table->unsignedBigInteger("collection_id")->nullable(); $table->timestamp("published_at")->nullable(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('files'); } };