<?php

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

class CreateTableCommentairesRapportActivite extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('commentaires_rapport_activite', function (Blueprint $table) {
            $table->id();
            $table->string('titre');
            $table->string('date_paat');
            $table->string('periode_reference');
            $table->text('commentaires');
            $table->date('date_rapport');
            $table->foreignId('user_id');
            $table->timestamps();
        });
    }

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