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

View File

@@ -14,9 +14,9 @@ class CreateZipsTable extends Migration
public function up()
{
Schema::create('zips', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->uuid('user_id');
$table->string('shared_token')->nullable();
$table->uuid('id')->primary()->index();
$table->uuid('user_id')->index();
$table->string('shared_token')->nullable()->index();
$table->text('basename');
$table->timestamps();
});