create all country tables

This commit is contained in:
2025-07-21 15:08:53 +03:30
parent e0ff2fa9ca
commit f35f886345
20 changed files with 443 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?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('country_calls_reports', function (Blueprint $table) {
$table->id();
$table->foreignId('province_id')->constrained('provinces');
$table->date('date');
$table->integer('total');
$table->integer('route_to_teh4');
$table->integer('route_to_teh5');
$table->integer('route_to_os4');
$table->integer('route_to_os5');
$table->integer('answered');
$table->integer('answered_over10');
$table->integer('missed');
$table->integer('dnd');
$table->integer('transferred');
$table->integer('talked_to_operator');
$table->float('average_calls_time');
$table->integer('fails');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('country_calls_reports');
}
};

View File

@@ -0,0 +1,44 @@
<?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('country_keypress_reports', function (Blueprint $table) {
$table->id();
$table->foreignId('province_id')->constrained('provinces');
$table->date('date');
$table->integer('total');
$table->integer('key1');
$table->integer('key2');
$table->integer('key3');
$table->integer('key4');
$table->integer('key5');
$table->integer('key6');
$table->integer('key9');
$table->integer('key4_1');
$table->integer('key4_2');
$table->integer('key5_1');
$table->integer('key5_2');
$table->integer('key2_1');
$table->integer('key2_2');
$table->integer('key2_3');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('country_keypress_reports');
}
};

View File

@@ -0,0 +1,35 @@
<?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('country_voice_rating_reports', function (Blueprint $table) {
$table->id();
$table->foreignId('province_id')->constrained('provinces');
$table->date('date');
$table->integer('voice_quality_ok');
$table->integer('message_quality_ok');
$table->integer('voice_format_ok');
$table->integer('voice_quality_nok');
$table->integer('message_quality_nok');
$table->integer('voice_format_nok');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('country_voice_rating_reports');
}
};

View File

@@ -0,0 +1,35 @@
<?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('country_message_rating_reports', function (Blueprint $table) {
$table->id();
$table->foreignId('province_id')->constrained('provinces');
$table->date('date');
$table->integer('very_good');
$table->integer('good');
$table->integer('average');
$table->integer('bad');
$table->integer('very_bad');
$table->integer('wrong_code');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('country_message_rating_reports');
}
};

View File

@@ -0,0 +1,27 @@
<?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('expert_performances', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('expert_performances');
}
};