Passed
Branch master (e30549)
by noitran
04:00
created

CreateUsersTestTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 16
dl 0
loc 41
rs 10
c 1
b 0
f 0
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class CreateUsersTestTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up(): void
15
    {
16
        Schema::create('users', function (Blueprint $table): void {
17
            $table->increments('id');
18
            $table->string('uuid', 64)->nullable()->unique();
19
20
            $table->string('name')->nullable();
21
            $table->string('surname')->nullable();
22
23
            $table->string('email')->nullable()->unique();
24
            $table->string('email_verification_token')->nullable();
25
            $table->timestamp('email_verified_at')->nullable();
26
27
            $table->string('password');
28
29
            $table->timestamp('last_logged_in_at')->nullable();
30
            $table->timestamp('disabled_at')->nullable();
31
            $table->timestamp('completed_at')->nullable();
32
33
34
35
            $table->softDeletes();
36
            $table->timestamps();
37
        });
38
    }
39
40
    /**
41
     * Reverse the migrations.
42
     *
43
     * @return void
44
     */
45
    public function down(): void
46
    {
47
        Schema::dropIfExists('users');
48
    }
49
}
50