44 lines
1.3 KiB
PHP
44 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace Zoomyboy\Event\Updates;
|
|
|
|
use Schema;
|
|
use Winter\Storm\Database\Schema\Blueprint;
|
|
use Winter\Storm\Database\Updates\Migration;
|
|
|
|
class CreateParticipantsTable extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
Schema::create('zoomyboy_event_participants', function (Blueprint $table) {
|
|
$table->engine = 'InnoDB';
|
|
$table->increments('id');
|
|
$table->string('gender');
|
|
$table->string('firstname');
|
|
$table->string('lastname');
|
|
$table->date('birthday');
|
|
$table->string('email');
|
|
$table->string('group')->nullable();
|
|
$table->string('agegroup');
|
|
$table->string('agegroup_leader');
|
|
$table->boolean('vorteam')->default(false);
|
|
$table->boolean('foto');
|
|
$table->string('emergency_phone');
|
|
$table->string('address');
|
|
$table->string('zip');
|
|
$table->string('location');
|
|
$table->string('phone');
|
|
$table->string('activity');
|
|
$table->json('food_preferences');
|
|
$table->string('further_food_preferences')->nullable();
|
|
$table->text('misc')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('zoomyboy_event_participants');
|
|
}
|
|
}
|