From 4dccc528cc784279b6362ee30cca69e846c210ac Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 17 Sep 2026 09:42:27 +0200 Subject: [PATCH] add ExpectiveApproach --- app/Models/ExpectiveApproach.php | 7 ++++ ...3035_create_expective_approaches_table.php | 36 +++++++++++++++++++ database/seeders/ExpectiveApproachSeeder.php | 34 ++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 app/Models/ExpectiveApproach.php create mode 100644 database/migrations/2026_09_17_093035_create_expective_approaches_table.php create mode 100644 database/seeders/ExpectiveApproachSeeder.php diff --git a/app/Models/ExpectiveApproach.php b/app/Models/ExpectiveApproach.php new file mode 100644 index 00000000..3007e432 --- /dev/null +++ b/app/Models/ExpectiveApproach.php @@ -0,0 +1,7 @@ +id(); + $table->string('position'); + $table->decimal('goals', 4, 3)->default(0); + $table->decimal('assists', 4, 3)->default(0); + $table->decimal('cards', 4, 3)->default(0); + $table->decimal('fouls', 4, 3)->default(0); + $table->decimal('was_fould', 4, 3)->default(0); + $table->decimal('offsides', 4, 3)->default(0); + $table->decimal('total_shots', 4, 3)->default(0); + $table->decimal('shots_on_target', 4, 3)->default(0); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('expective_approaches'); + } +}; diff --git a/database/seeders/ExpectiveApproachSeeder.php b/database/seeders/ExpectiveApproachSeeder.php new file mode 100644 index 00000000..d7cfe92d --- /dev/null +++ b/database/seeders/ExpectiveApproachSeeder.php @@ -0,0 +1,34 @@ +