41 lines
1 KiB
PHP
41 lines
1 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreatePrizes extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('prizes', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->unsignedBigInteger("arcadia_id");
|
|
$table->string("label_one");
|
|
$table->string("label_many");
|
|
$table->integer("quantity");
|
|
$table->boolean("notifications");
|
|
$table->boolean("additional_form");
|
|
$table->integer("arcadia_mail_id");
|
|
$table->string("pdf_winning_proof")->nullable();
|
|
$table->boolean("is_default");
|
|
$table->foreignId("gain_view_id")->constrained("gain_views");
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('prizes');
|
|
}
|
|
}
|