| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function up(): void |
||
| 17 | { |
||
| 18 | Schema::create(config('rinvex.oauth.tables.refresh_tokens'), function (Blueprint $table) { |
||
| 19 | $table->increments('id'); |
||
| 20 | $table->string('identifier', 100); |
||
| 21 | $table->string('access_token_identifier', 100); |
||
| 22 | $table->boolean('is_revoked')->default(false); |
||
| 23 | $table->dateTime('expires_at')->nullable(); |
||
| 24 | $table->timestamps(); |
||
| 25 | |||
| 26 | // Indexes |
||
| 27 | $table->unique('identifier'); |
||
| 28 | $table->index(['access_token_identifier']); |
||
| 29 | $table->foreign('access_token_identifier')->references('identifier')->on(config('rinvex.oauth.tables.access_tokens')) |
||
| 30 | ->onDelete('cascade')->onUpdate('cascade'); |
||
| 31 | }); |
||
| 32 | } |
||
| 33 | |||
| 44 |