Your IP : 3.140.198.3


Current Path : /home/lentoinv/api.lentoria.com/database/migrations/
Upload File :
Current File : //home/lentoinv/api.lentoria.com/database/migrations/2022_07_25_152917_create_topics_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('topics', function (Blueprint $table) {
            $table->id();
            $table->integer('category_id');
            $table->string('name')->nullable();
            $table->text('description')->nullable();
            $table->timestampsTz();
        });
    }

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

?>