increments('id'); $table->string('uuid', 64)->index(); $table->string('disk', 32); $table->string('filepath', 512); $table->string('filename', 255); $table->string('filetype', 512); $table->unsignedInteger('filesize'); $table->string('key', 64)->nullable(); $table->string('title', 92)->nullable(); $table->text('description')->nullable(); $table->string('preview_url', 512)->nullable(); $table->unsignedInteger('model_id')->nullable()->index(); $table->string('model_type', 512)->nullable(); $table->longText('metadata')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('attachments'); } }