File: /home/imensosw/.trash/database.1/migrations/2020_12_08_113402_create_user_evaluations_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUserEvaluationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_evaluations', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('user_id')->index('user_id');
$table->unsignedBigInteger('evaluation_id')->index('evaluation_id');
$table->unsignedBigInteger('evaluation_status_id')->index('evaluation_status_id');
$table->unsignedBigInteger('is_started')->index('is_started');
$table->text('answer');
$table->string('answer_file')->nullable();
$table->integer('time_expend');
$table->integer('score')->nullable();
$table->integer('semantic_score');
$table->integer('terminology_score');
$table->integer('syntax_score');
$table->integer('quality_score');
$table->integer('beauty_score');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_evaluations');
}
}