| Total Complexity | 2 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 | } |
||
| 50 |