JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "2024_04_09_113636_create_quizzes_table.php"

Full Path: /home/u528834676/domains/ahavalms.com/public_html/database/migrations/2024_04_09_113636_create_quizzes_table.php
File size: 1.06 KB
MIME-type: text/x-php
Charset: utf-8

<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('quizzes', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('course_id');
            $table->string('section_id', 255)->nullable();
            $table->integer('duration', 255)->nullable();
            $table->integer('num_questions', 255)->nullable();
            $table->integer('total_mark', 255)->nullable();
            $table->integer('pass_mark', 255)->nullable();
            $table->integer('drip_rule', 255)->nullable();
            $table->integer('summary', 255)->nullable();
            $table->timestamp('created_at')->useCurrent();
            $table->timestamp('updated_at')->useCurrent();
        });
    }

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