add groups and major groups direct from txodds for auto mapping names

This commit is contained in:
salam committed 2026-02-25 19:50:40 +01:00
1 parent ba83e1a12d
commit 859038cc8c
21 files changed
+299 -40

No files matched your search

@@ -13,10 +13,15 @@ return new class extends Migration
{
Schema::create('groups', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('name')->nullable();
$table->string('fullname')->nullable();
$table->string('mgroup')->nullable();
$table->integer('sid')->nullable()->deafult(0);
$table->integer('sport_id')->index()->references('id')->on('sports');
$table->integer('competition_group_id')->default(0)->nullable()->index()->references('id')->on('competition_groups');
$table->integer('country_id')->default(0)->nullable()->index()->references('id')->on('countries');
$table->timestamp('date1');
$table->timestamp('date2');
$table->timestamps();
});
}
@@ -0,0 +1,30 @@
<?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('major_groups', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->integer('sport_id')->index()->references('id')->on('sports');
$table->integer('country_id')->default(0)->nullable()->index()->references('id')->on('countries');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('major_groups');
}
};