removed precalculation

This commit is contained in:
salam committed 2026-10-12 23:43:23 +02:00
1 parent f6f5dd0c7c
commit 838d6419f4
11 files changed
+214 -680

No files matched your search

@@ -1,46 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('ss_player_seasons', function (Blueprint $table) {
$table->id();
$table->integer('ss_player_id')->index()->default(0);
$table->integer('ss_team_id')->index()->default(0);
$table->string('season')->index()->default('');
$table->integer('total_events')->default(0)->nullable();
$table->integer('total_min')->default(0)->nullable();
$table->integer('average_min')->default(0)->nullable();
$table->integer('events_played_home')->default(0)->nullable();
$table->integer('events_played_away')->default(0)->nullable();
$table->integer('minutes_played_home')->default(0)->nullable();
$table->integer('minutes_played_away')->default(0)->nullable();
$table->integer('goals')->default(0)->nullable();
$table->integer('fouls')->default(0)->nullable();
$table->integer('cards')->default(0)->nullable();
$table->integer('offsides')->default(0)->nullable();
$table->integer('shots_on_target')->default(0)->nullable();
$table->integer('shots_off_target')->default(0)->nullable();
$table->integer('shots_blocked')->default(0)->nullable();
$table->integer('total_shots')->default(0)->nullable();
$table->unique(['ss_player_id', 'season']);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('ss_player_seasons');
}
};