db and query optimization compl

This commit is contained in:
salam committed 2026-01-04 06:29:11 +01:00
1 parent 9d2a8ce628
commit 40d97327d4
24 files changed
+145 -126

No files matched your search

@@ -11,7 +11,7 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('odds_qualify', function (Blueprint $table) {
Schema::create('odds_tq', function (Blueprint $table) {
$table->id();
$table->foreignId('event_id')->index()->constrained()->cascadeOnDelete()->references('id')->on('events');
$table->integer('sport_id')->index()->references('id')->on('sports');
@@ -33,6 +33,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('odds_qualify');
Schema::dropIfExists('odds_tq');
}
};