Your IP : 18.223.171.83


Current Path : /home/lentoinv/test.api.lentoria.com/database/migrations/
Upload File :
Current File : /home/lentoinv/test.api.lentoria.com/database/migrations/2022_07_26_081508_create_courses_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('courses', function (Blueprint $table) {
            $table->id();
            $table->integer('category_id');
            $table->integer('topic_id');
            $table->integer('user_id');
            $table->string('title');
            $table->string('subtitle')->nullable();
            $table->text('description')->nullable();
            $table->text('language')->nullable();
            $table->string('image')->nullable();
            $table->string('video')->nullable();
            $table->integer('level')->nullable();
            $table->integer('course_type');
            $table->timestamps();
        });
    }

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

?>