Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- class CreateUsersTable extends Migration
- {
- /**
- * Run the migrations.
- */
- public function up()
- {
- Schema::create('users', function (Blueprint $table) {
- $table->bigIncrements('id');
- $table->string('email')->unique();
- $table->string('password');
- $table->boolean('activated')->default(0);
- $table->boolean('superuser')->default(0);
- $table->boolean('privacy_policy_accepted')->default(0);
- $table->string('first_name')->nullable();
- $table->string('last_name')->nullable();
- $table->string('phone')->nullable();
- $table->string('locale')->nullable();
- $table->string('street')->nullable();
- $table->string('number')->nullable();
- $table->string('box')->nullable();
- $table->string('postal_code')->nullable();
- $table->string('city')->nullable();
- $table->string('country')->nullable();
- $table->text('preferences')->nullable();
- $table->uuid('api_token')->unique();
- $table->timestamp('email_verified_at')->nullable();
- $table->rememberToken();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- */
- public function down()
- {
- Schema::drop('users');
- }
- }
RAW Paste Data