Your IP : 52.15.233.83


Current Path : /home/lentoinv/api.lentoria.com/database/migrations/
Upload File :
Current File : //home/lentoinv/api.lentoria.com/database/migrations/2022_07_26_112124_create_materials_table.php

<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('materials', function (Blueprint $table) {
            $table->id();
            $table->integer('lecture_id');
            $table->string('title')->nullable();
            $table->string('link')->nullable();
            $table->string('type')->default(0);
            $table->text('scripts')->nullable();
            $table->timestampsTz();
        });
    }

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

?>