create all country tables
This commit is contained in:
12
app/Models/CountryCallsReport.php
Normal file
12
app/Models/CountryCallsReport.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class CountryCallsReport extends Model
|
||||||
|
{
|
||||||
|
/** @use HasFactory<\Database\Factories\CountryCallsReportFactory> */
|
||||||
|
use HasFactory;
|
||||||
|
}
|
||||||
12
app/Models/CountryKeypressReport.php
Normal file
12
app/Models/CountryKeypressReport.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class CountryKeypressReport extends Model
|
||||||
|
{
|
||||||
|
/** @use HasFactory<\Database\Factories\CountryKeypressReportFactory> */
|
||||||
|
use HasFactory;
|
||||||
|
}
|
||||||
12
app/Models/CountryMessageRatingReport.php
Normal file
12
app/Models/CountryMessageRatingReport.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class CountryMessageRatingReport extends Model
|
||||||
|
{
|
||||||
|
/** @use HasFactory<\Database\Factories\CountryMessageRatingReportFactory> */
|
||||||
|
use HasFactory;
|
||||||
|
}
|
||||||
12
app/Models/CountryVoiceRatingReport.php
Normal file
12
app/Models/CountryVoiceRatingReport.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class CountryVoiceRatingReport extends Model
|
||||||
|
{
|
||||||
|
/** @use HasFactory<\Database\Factories\CountryVoiceRatingReportFactory> */
|
||||||
|
use HasFactory;
|
||||||
|
}
|
||||||
12
app/Models/ExpertPerformance.php
Normal file
12
app/Models/ExpertPerformance.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class ExpertPerformance extends Model
|
||||||
|
{
|
||||||
|
/** @use HasFactory<\Database\Factories\ExpertPerformanceFactory> */
|
||||||
|
use HasFactory;
|
||||||
|
}
|
||||||
23
database/factories/CountryCallsReportFactory.php
Normal file
23
database/factories/CountryCallsReportFactory.php
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Factories;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\CountryCallsReport>
|
||||||
|
*/
|
||||||
|
class CountryCallsReportFactory extends Factory
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Define the model's default state.
|
||||||
|
*
|
||||||
|
* @return array<string, mixed>
|
||||||
|
*/
|
||||||
|
public function definition(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
23
database/factories/CountryKeypressReportFactory.php
Normal file
23
database/factories/CountryKeypressReportFactory.php
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Factories;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\CountryKeypressReport>
|
||||||
|
*/
|
||||||
|
class CountryKeypressReportFactory extends Factory
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Define the model's default state.
|
||||||
|
*
|
||||||
|
* @return array<string, mixed>
|
||||||
|
*/
|
||||||
|
public function definition(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
23
database/factories/CountryMessageRatingReportFactory.php
Normal file
23
database/factories/CountryMessageRatingReportFactory.php
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Factories;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\CountryMessageRatingReport>
|
||||||
|
*/
|
||||||
|
class CountryMessageRatingReportFactory extends Factory
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Define the model's default state.
|
||||||
|
*
|
||||||
|
* @return array<string, mixed>
|
||||||
|
*/
|
||||||
|
public function definition(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
23
database/factories/CountryVoiceRatingReportFactory.php
Normal file
23
database/factories/CountryVoiceRatingReportFactory.php
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Factories;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\CountryVoiceRatingReport>
|
||||||
|
*/
|
||||||
|
class CountryVoiceRatingReportFactory extends Factory
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Define the model's default state.
|
||||||
|
*
|
||||||
|
* @return array<string, mixed>
|
||||||
|
*/
|
||||||
|
public function definition(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
23
database/factories/ExpertPerformanceFactory.php
Normal file
23
database/factories/ExpertPerformanceFactory.php
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Factories;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\ExpertPerformance>
|
||||||
|
*/
|
||||||
|
class ExpertPerformanceFactory extends Factory
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Define the model's default state.
|
||||||
|
*
|
||||||
|
* @return array<string, mixed>
|
||||||
|
*/
|
||||||
|
public function definition(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -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');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -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');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -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');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -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');
|
||||||
|
}
|
||||||
|
};
|
||||||
17
database/seeders/CountryCallsReportSeeder.php
Normal file
17
database/seeders/CountryCallsReportSeeder.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
|
class CountryCallsReportSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*/
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
17
database/seeders/CountryKeypressReportSeeder.php
Normal file
17
database/seeders/CountryKeypressReportSeeder.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
|
class CountryKeypressReportSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*/
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
17
database/seeders/CountryMessageRatingReportSeeder.php
Normal file
17
database/seeders/CountryMessageRatingReportSeeder.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
|
class CountryMessageRatingReportSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*/
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
17
database/seeders/CountryVoiceRatingReportSeeder.php
Normal file
17
database/seeders/CountryVoiceRatingReportSeeder.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
|
class CountryVoiceRatingReportSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*/
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
17
database/seeders/ExpertPerformanceSeeder.php
Normal file
17
database/seeders/ExpertPerformanceSeeder.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
|
class ExpertPerformanceSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*/
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user