| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class CreateOneTimeTokensTable extends Migration |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Run the migrations. |
||
| 11 | */ |
||
| 12 | public function up() |
||
| 13 | { |
||
| 14 | Schema::create('one_time_tokens', function (Blueprint $table) { |
||
| 15 | $table->increments('id'); |
||
| 16 | $table->unsignedInteger('user_id')->index(); |
||
| 17 | $table->string('operation')->index(); |
||
| 18 | $table->string('identifier')->index(); |
||
| 19 | $table->unsignedInteger('code')->index(); |
||
| 20 | $table->timestamp('expires_at')->nullable()->index(); |
||
| 21 | $table->timestamp('used_at')->nullable()->index(); |
||
| 22 | $table->timestamps(); |
||
| 23 | }); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Reverse the migrations. |
||
| 28 | */ |
||
| 29 | public function down() |
||
| 32 | } |
||
| 33 | } |
||
| 34 |