change telephone id for every user

This commit is contained in:
2025-05-06 14:15:49 +03:30
parent ab042b3a44
commit 1a1a0aa57b
15 changed files with 64 additions and 40 deletions

View File

@@ -25,7 +25,8 @@ return new class extends Migration
$table->string('province_fa');
$table->string('email')->unique()->nullable();
$table->dateTime('last_login')->nullable();
$table->string('telephone_id')->unique();
$table->string('telephone_id')->unique()->nullable();
$table->boolean('is_online');
$table->rememberToken()->nullable();
$table->timestamps();
});

View File

@@ -15,25 +15,15 @@ return new class extends Migration
$table->id();
$table->string('telephone_id');
$table->string('caller_phone_number');
$table->foreignId('province_id')
->nullable()
->constrained();
$table->foreignId('province_id')->nullable()->constrained();
$table->string('province_fa')->nullable();
$table->foreignId('operator_id')
->nullable()
->constrained('users');
$table->foreignId('operator_id')->nullable()->constrained('users');
$table->string('operator_username')->nullable();
$table->string('operator_full_name')->nullable();
$table->unsignedSmallInteger('category_id')->nullable();
$table->string('category_name')->nullable();
$table->unsignedSmallInteger('subcategory_id')->nullable();
$table->string('subcategory_name')->nullable();
$table->text('description')->nullable();
$table->timestamps();
});