<?php

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

class CreateMessagesTable extends Migration
{



    public function up()
    {
        Schema::create('messages', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name');
            $table->string('email');
            $table->string('phone');
            $table->text('sujet');
            $table->text('message');
            $table->integer('status')->default(0);
            $table->timestamps();
        });
    }




    public function down()
    {
        Schema::dropIfExists('messages');
    }

    
}
