id(); $table->string('ip'); $table->string('sticker')->nullable(); $table->string('ticket')->nullable(); $table->string('barcode')->nullable(); $table->foreignId('user_id')->constrained('users'); $table->foreignId('code_unique_id')->constrained('codes'); $table->foreignId('code_ean_id')->nullable()->constrained('code_eans'); $table->foreignId('reduction_id')->nullable()->constrained('reductions'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('participations'); } }