first commit

This commit is contained in:
2026-05-20 14:01:28 +02:00
commit 0beb9cbab0
2550 changed files with 558392 additions and 0 deletions
@@ -0,0 +1,50 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('email')->unique();
$table->string('username')->nullable()->index();
$table->string('password');
$table->string('first_name')->nullable();
$table->string('last_name')->nullable();
$table->string('phone')->nullable();
$table->string('avatar')->nullable();
$table->string('address')->nullable();
$table->unsignedInteger('country_id')->nullable();
$table->unsignedInteger('role_id');
$table->date('birthday')->nullable();
$table->timestamp('last_login')->nullable();
$table->string('status', 20)->index();
$table->integer('two_factor_country_code')->nullable();
$table->bigInteger('two_factor_phone', false, true)->nullable();
$table->text('two_factor_options')->nullable();
$table->timestamp('email_verified_at')->nullable();
$table->rememberToken();
$table->timestamps();
$table->index('created_at');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}