Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function up() |
||
22 | { |
||
23 | Schema::create(config('follow.relation_table', 'user_follower'), function (Blueprint $table) { |
||
24 | $table->increments('id'); |
||
25 | $table->unsignedBigInteger('following_id')->index(); |
||
26 | $table->unsignedBigInteger('follower_id')->index(); |
||
27 | $table->timestamp('accepted_at')->nullable()->index(); |
||
28 | $table->timestamps(); |
||
29 | }); |
||
40 |