%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/zgjedhjet2017/database/migrations/
Upload File :
Create Path :
Current File : /var/www/html/zgjedhjet2017/database/migrations/2017_05_26_193807_create_votes_table.php

<?php

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

class CreateVotesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('votes', function (Blueprint $table) {
            $table->increments('id');
            $table->string('ip');
            $table->string('ipPrivate');
            $table->enum('gjinia',['M','F']);
            $table->enum('mosha',['18-29 Vjec','30-44 Vjec','45-65 Vjec','Mbi 65 Vjec']);
            $table->string('qarku');
            $table->boolean('marr_pjese');
            $table->enum('votoj_njelloj',['Po','Jo','Isha nën 18','Arsye tjetër']);
            $table->enum('arsyeja',['Isha nën 18','Arsye tjetër'])->nullable();
            $table->enum('premtimet_dhe_programi',['Luan rol të vogël', 'Luan rol të konsiderueshëm', 'Luan rolin kryesor']);
            $table->enum('permbushja_pritshmerive',['I ka përmbushur në nivel të lartë', 'I ka përmbushur në nivel të mesëm', 'I ka përmbushur në nivel të ulët']);
            $table->string('party')->nullable();
            $table->integer('load_time');
            $table->integer('total_time');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('votes');
    }
}

Zerion Mini Shell 1.0