wip
This commit is contained in:
1 parent
e493c4ed42
commit
399b9d43a7
27 files changed
+605
-169
No files matched your search
@@ -21,6 +21,8 @@ return new class extends Migration
|
||||
$table->decimal('draw', 7, 3)->default(0);
|
||||
$table->decimal('away', 7, 3)->default(0);
|
||||
$table->decimal('margin', 7, 3)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->integer('add_time')->default(0);
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
@@ -20,6 +20,8 @@ return new class extends Migration
|
||||
$table->decimal('home', 7, 3)->default(0);
|
||||
$table->decimal('away', 7, 3)->default(0);
|
||||
$table->decimal('margin', 7, 3)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->integer('add_time')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
<?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('odds_dc', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('sport_id')->default(0);
|
||||
$table->integer('matchpart_id')->default(0);
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->decimal('dc1x', 7, 3)->default(0);
|
||||
$table->decimal('dc12', 7, 3)->default(0);
|
||||
$table->decimal('dc2x', 7, 3)->default(0);
|
||||
$table->decimal('margin', 7, 3)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->integer('add_time')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('odds_dc');
|
||||
}
|
||||
};
|
||||
@@ -20,6 +20,8 @@ return new class extends Migration
|
||||
$table->decimal('dnb1', 7, 3)->default(0);
|
||||
$table->decimal('dnb2', 7, 3)->default(0);
|
||||
$table->decimal('margin', 7, 3)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->integer('add_time')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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('odds_ggng', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('sport_id')->default(0);
|
||||
$table->integer('matchpart_id')->default(0);
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->decimal('gg', 7, 3)->default(0);
|
||||
$table->decimal('ng', 7, 3)->default(0);
|
||||
$table->decimal('margin', 7, 3)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->integer('add_time')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('odds_ggng');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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('odds_qualify', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('sport_id')->default(0);
|
||||
$table->integer('matchpart_id')->default(0);
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->decimal('htq', 7, 3)->default(0);
|
||||
$table->decimal('atq', 7, 3)->default(0);
|
||||
$table->decimal('margin', 7, 3)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->integer('add_time')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('odds_qualify');
|
||||
}
|
||||
};
|
||||
@@ -21,6 +21,8 @@ return new class extends Migration
|
||||
$table->decimal('away', 7, 3)->default(0);
|
||||
$table->decimal('handicap', 7, 3)->default(0);
|
||||
$table->decimal('margin', 7, 3)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->integer('add_time')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -19,8 +19,10 @@ return new class extends Migration
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->decimal('over', 7, 3)->default(0);
|
||||
$table->decimal('under', 7, 3)->default(0);
|
||||
$table->decimal('spread', 7, 3)->default(0);
|
||||
$table->decimal('total', 7, 3)->default(0);
|
||||
$table->decimal('margin', 7, 3)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->integer('add_time')->default(0);
|
||||
$table->timestamps();
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('icon')->nullable();
|
||||
$table->string('homepage')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,78 +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('event_bookmakers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->timestamp('time')->nullable();
|
||||
$table->integer('bkid')->default(0);
|
||||
$table->string('boid')->nullable();
|
||||
|
||||
// flag status
|
||||
$table->integer('flag')->default(0);
|
||||
// swop (inverted odds)
|
||||
$table->integer('swop')->default(0);
|
||||
|
||||
// 1x2
|
||||
$table->decimal('h3w', 7, 3)->default(0);
|
||||
$table->decimal('d3w', 7, 3)->default(0);
|
||||
$table->decimal('a3w', 7, 3)->default(0);
|
||||
$table->decimal('m3w', 7, 3)->default(0);
|
||||
$table->integer('f3w')->default(0);
|
||||
// bookmaker offer id
|
||||
|
||||
// Total
|
||||
$table->decimal('ov', 7, 3)->default(0);
|
||||
$table->decimal('un', 7, 3)->default(0);
|
||||
$table->decimal('hc', 7, 3)->default(0);
|
||||
$table->decimal('mto', 7, 3)->default(0);
|
||||
$table->integer('fto')->default(0);
|
||||
|
||||
// ML
|
||||
$table->decimal('h2w', 7, 3)->default(0);
|
||||
$table->decimal('a2w', 7, 3)->default(0);
|
||||
$table->decimal('m2w', 7, 3)->default(0);
|
||||
$table->integer('f2w')->default(0);
|
||||
|
||||
// DC
|
||||
$table->decimal('dc1x', 7, 3)->default(0);
|
||||
$table->decimal('dc12', 7, 3)->default(0);
|
||||
$table->decimal('dc2x', 7, 3)->default(0);
|
||||
$table->decimal('mdc', 7, 3)->default(0);
|
||||
$table->integer('fdc')->default(0);
|
||||
|
||||
// GG NG
|
||||
$table->decimal('gg', 7, 3)->default(0);
|
||||
$table->decimal('ng', 7, 3)->default(0);
|
||||
$table->decimal('mgg', 7, 3)->default(0);
|
||||
$table->integer('fgg')->default(0);
|
||||
|
||||
// TO QUALIFY
|
||||
$table->decimal('htq', 7, 3)->default(0);
|
||||
$table->decimal('atq', 7, 3)->default(0);
|
||||
$table->decimal('mtq', 7, 3)->default(0);
|
||||
$table->integer('ftq')->default(0);
|
||||
|
||||
$table->timestamps();
|
||||
$table->index(['event_id', 'boid', 'bkid', 'flag']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('event_bookmakers');
|
||||
}
|
||||
};
|
||||
@@ -1,28 +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::table('users', function (Blueprint $table) {
|
||||
$table->json('custom_fields')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropColumn('custom_fields');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -1,28 +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::table('users', function (Blueprint $table) {
|
||||
$table->string(config('filament-edit-profile.avatar_column', 'avatar_url'))->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropColumn(config('filament-edit-profile.avatar_column', 'avatar_url'));
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -1,27 +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('customers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('customers');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user