basic analytics

This commit is contained in:
2023-01-24 18:17:36 +10:00
parent 0b1fee1cdc
commit f888c4a718
4 changed files with 92 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('analytics', function (Blueprint $table) {
$table->id();
$table->string('type');
$table->string('attribute');
$table->text('useragent');
$table->string('ip');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('analytics');
}
};