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

@@ -15,7 +15,7 @@ class CreateTrafficTable extends Migration
{
Schema::create('traffic', function (Blueprint $table) {
$table->uuid('id');
$table->uuid('user_id');
$table->uuid('user_id')->index();
$table->bigInteger('upload')->default(0);
$table->bigInteger('download')->default(0);
$table->timestamps();