Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function up() |
||
18 | { |
||
19 | Schema::create('otp_tokens', function (Blueprint $table) { |
||
20 | $table->unsignedInteger('authenticable_id'); |
||
21 | $table->string('cipher_text', 64); |
||
22 | $table->timestamp('created_at')->useCurrent(); |
||
23 | $table->timestamp('updated_at')->useCurrent(); |
||
24 | $table->unsignedSmallInteger('expiry_time')->nullable(); |
||
25 | |||
26 | $table->unique(['authenticable_id', 'cipher_text']); |
||
27 | }); |
||
38 |