added indexes to the database

This commit is contained in:
Peter Papp
2021-03-14 11:04:19 +01:00
parent 5778de20f2
commit 95eb167622
10 changed files with 15 additions and 17 deletions
@@ -17,7 +17,7 @@ class CreateSharesTable extends Migration
$table->uuid('id')->primary();
$table->uuid('user_id');
$table->uuid('item_id');
$table->string('token', 16)->unique();
$table->string('token', 16)->unique()->index();
$table->enum('type', ['file', 'folder']);
$table->enum('permission', ['visitor', 'editor'])->nullable();
$table->boolean('is_protected')->default(0);