]> git.localhorst.tv Git - alttp.git/blob - database/migrations/2014_10_12_000000_create_users_table.php
add discord auth
[alttp.git] / database / migrations / 2014_10_12_000000_create_users_table.php
1 <?php
2
3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
6
7 class CreateUsersTable extends Migration
8 {
9     /**
10      * Run the migrations.
11      *
12      * @return void
13      */
14     public function up()
15     {
16         Schema::create('users', function (Blueprint $table) {
17             $table->id();
18
19             $table->string('username');
20             $table->string('discriminator');
21
22             $table->string('email')->unique();
23             $table->string('avatar')->nullable();
24
25             $table->boolean('verified');
26             $table->string('locale');
27             $table->boolean('mfa_enabled');
28             $table->string('refresh_token')->nullable();
29             $table->timestamps();
30         });
31     }
32
33     /**
34      * Reverse the migrations.
35      *
36      * @return void
37      */
38     public function down()
39     {
40         Schema::dropIfExists('users');
41     }
42 }