uuid('id')->primary(); $table->uuid('user_id'); $table->uuid('item_id'); $table->string('token', 16)->unique()->index(); $table->enum('type', ['file', 'folder']); $table->enum('permission', ['visitor', 'editor'])->nullable(); $table->boolean('is_protected')->default(0); $table->string('password')->nullable(); $table->integer('expire_in')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('shares'); } }