id(); $table->timestamps(); $table->integer('site_id')->unsigned(); $table->boolean('active')->default(false); $table->string('name',32); $table->string('app_id',128); $table->string('secret',128); $table->foreign(['site_id'])->references(['id'])->on('sites'); $table->unique(['id','site_id']); $table->unique(['site_id','name']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('provider_oauth'); } };