<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateEventParticipantTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('event_participant', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('fk_master_event');
            $table->string('fullname');
            $table->string('email');
            $table->string('phone');
            $table->string('address');
            $table->string('invitation_code');
            $table->unsignedInteger('invitation_status');
            $table->unsignedInteger('acceptance_status');
            $table->unsignedInteger('goodies_status');
            $table->nullableTimestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('event_participant');
    }
}
