ldc-gen-game-web/database/migrations/2020_10_29_091811_create_prizes.php
2023-12-08 15:39:13 +01:00

43 lines
1.3 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('prizes', function (Blueprint $table) {
$table->id();
$table->string('label')->comment('Libellé');
$table->string('picture')->comment('Image du lot');
$table->string('picture_alt')->comment('Attribut alt de l\'image du lot');
$table->string('picture_title')->comment('Attribut title de l\'image du lot');
$table->string('arg_title')->comment('Tire argumentaire');
$table->string('arg_subtitle')->comment('Sous-titre argumentaire');
$table->text('arg_content')->comment('Contenu argumentaire');
$table->integer('quantity')->comment('Quantitée en jeu du lot');
$table->string('pdf_winning_proof')->nullable()
->comment('Pdf de preuve de gains à compléter par le joueur qui aurait gagné');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('prizes');
}
};