create province tables

This commit is contained in:
2025-07-29 13:45:30 +03:30
parent 21f573e184
commit 3cfe1446e6
18 changed files with 361 additions and 2 deletions

View File

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

View File

@@ -0,0 +1,34 @@
<?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('system_messages', function (Blueprint $table) {
$table->id();
$table->integer('duration');
$table->dateTime('date');
$table->string('voice');
$table->integer('message_quality');
$table->integer('format_quality');
$table->integer('type_id');
$table->string('type_name');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('system_messages');
}
};

View File

@@ -0,0 +1,33 @@
<?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('operator_dialogue_ratings', function (Blueprint $table) {
$table->id();
$table->string('cdr_unique_id');
$table->dateTime('date');
$table->foreignId('expert_id')->constrained('users');
$table->boolean('is_listen')->default(false);
$table->boolean('is_good');
$table->string('description')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('operator_dialogue_ratings');
}
};

View File

@@ -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('people_messages', function (Blueprint $table) {
$table->id();
$table->string('caller_phone_number');
$table->dateTime('date');
$table->string('voice');
$table->integer('review_duration')->nullable();
$table->dateTime('listen_at')->nullable();
$table->boolean('is_listen')->default(false);
$table->foreignId('action_id')->nullable()->constrained();
$table->string('action_name')->nullable();
$table->string('description')->nullable();
$table->unsignedBigInteger('savaneh_id')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('people_messages');
}
};