uuid('id')->primary()->default(DB::raw('uuid_generate_v1mc()')); $table->uuid('target_id')->index(); $table->string('target_type',32)->index(); $table->uuid('user_id')->index()->nullable(); $table->ipAddress('user_ip')->index(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('views'); } }