43 lines
1.3 KiB
PHP
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')->nullable()->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');
|
|
}
|
|
};
|