ldc-gen-game-web/database/migrations/2020_11_03_160038_create_reductions.php
2020-11-04 11:49:43 +01:00

35 lines
786 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateReductions extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('reductions', function (Blueprint $table) {
$table->id();
$table->foreignId('participation_id')->constrained('participation');
$table->string('link');
$table->string('basket_id');
$table->string('verification');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('reductions');
}
}