<filename>database/migrations/2022_06_28_101025_create_course_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('course', function (Blueprint $table) {
            $table->id('id_course');
            $table->string('title',50);
            $table->string('sub_title',255);
            $table->longtext('img_title');
            $table->longtext('img_content');
            $table->longtext('img_mindmap');
            $table->longtext('link');
            $table->integer('harga');
            $table->timestamps();
        });
    }

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