Path: blob/1.0-develop/database/migrations/2016_01_23_203159_add_users.php
7460 views
<?php12use Illuminate\Support\Facades\Schema;3use Illuminate\Database\Schema\Blueprint;4use Illuminate\Database\Migrations\Migration;56class AddUsers extends Migration7{8/**9* Run the migrations.10*/11public function up(): void12{13Schema::create('users', function (Blueprint $table) {14$table->increments('id');15$table->char('uuid', 36)->unique();16$table->string('email')->unique();17$table->text('password');18$table->string('remember_token')->nullable();19$table->char('language', 5)->default('en');20$table->tinyInteger('root_admin')->unsigned()->default(0);21$table->tinyInteger('use_totp')->unsigned();22$table->char('totp_secret', 16)->nullable();23$table->timestamps();24});25}2627/**28* Reverse the migrations.29*/30public function down(): void31{32Schema::dropIfExists('users');33}34}353637