database/migrations/2021_08_29_083504_create_exam_rules_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateExamRulesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('exam_rules', function (Blueprint $table) {
$table->id();
$table->float('total_marks');
$table->float('pass_marks');
$table->text('marks_distribution_note');
$table->unsignedInteger('exam_id');
$table->unsignedInteger('session_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('exam_rules');
}
}