Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function up() |
||
14 | { |
||
15 | Schema::create('users_oauth', function (Blueprint $table) { |
||
16 | $table->increments('id'); |
||
17 | $table->unsignedInteger('user_id'); |
||
18 | $table->string('remote_provider', 32); |
||
19 | $table->string('remote_id', 255); |
||
20 | $table->string('nickname')->nullable(); |
||
21 | $table->string('name')->nullable(); |
||
22 | $table->string('email')->nullable(); |
||
23 | $table->string('avatar', 255)->nullable(); |
||
24 | $table->timestamps(); |
||
25 | |||
26 | $table->foreign('user_id')->references('id')->on('users')->onUpdate('cascade')->onDelete('cascade'); |
||
27 | }); |
||
28 | } |
||
29 | |||
43 |