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 @@ +