prefix('assets_meta'), function (Blueprint $table) { $table->id(); $table->string('container')->index(); $table->string('folder')->index(); $table->string('basename')->index(); $table->string('filename')->index(); $table->char('extension', 10)->index(); $table->string('path')->index(); $table->jsonb('meta')->nullable(); $table->timestamps(); $table->unique(['container', 'folder', 'basename']); }); } public function down() { Schema::dropIfExists($this->prefix('assets_meta')); } };