OwlCyberSecurity - MANAGER
Edit File: 2022_08_14_091353_create_users_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function (Blueprint $table) { $table->id(); $table->string('name',255)->nullable(); $table->string('login_name',255)->nullable(); $table->string('password',255); $table->boolean('has_access')->default(false); $table->string('email')->nullable(); $table->string('nationalcode')->nullable(); $table->boolean('isemailconfirmed')->default(false); $table->string('cell_number',255)->unique()->index(); $table->boolean('iscell_numberconfirmed')->default(false); $table->string('phone_number',255); $table->tinyInteger('is_old_hash'); $table->integer('rank'); $table->date('last_verify_date')->nullable(); $table->string('telegram_user',255)->nullable(); $table->string('usercode',8)->nullable(); $table->decimal('wallet_balance', 18, 2); $table->string('old_guid')->nullable(); $table->rememberToken(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } };