ldc-gen-game-web/database/migrations/2020_10_29_091811_create_prizes.php

39 lines
942 B
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->string("label_one");
$table->string("label_many");
$table->string("arg_title");
$table->string("arg_subtitle");
$table->text("arg_content");
$table->integer("quantity");
$table->string("pdf_winning_proof")->nullable();
$table->boolean("need_proof")->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('prizes');
}
}