restore composer.json, add mysqli extension

This commit is contained in:
2026-04-15 17:02:52 +05:00
commit 77cf56a348
4317 changed files with 1397107 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('first_name')->nullable();
$table->string('last_name')->nullable();
$table->string('avatar')->nullable();
$table->string('password')->nullable();
$table->unsignedInteger('role_id')->default(2);
$table->string('email')->nullable();
$table->unsignedBigInteger('phone')->unique();
$table->unsignedInteger('verify_code')->nullable();
$table->boolean('verified')->default(false);
$table->boolean('gender')->default(true);
$table->timestamp('birth_day')->nullable();
$table->string('postal_address')->nullable();
$table->unsignedBigInteger('category_id')->nullable();
$table->boolean('notification')->default(true);
$table->string('language')->default('ru');
$table->unsignedInteger('step')->default(1);
$table->ipAddress('ip')->default('127.0.0.1');
$table->timestamp('deleted_at')->nullable();
//$table->rememberToken();
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('users');
}
}