<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateContactRequestsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('contact_requests', function (Blueprint $table) {
$table->id();
$table->string('unique_id')->unique('');
$table->string('name')->default('');
$table->string('mobile')->nullable();
$table->string('email')->default('');
$table->longText('query')->nullable();
$table->longText('answer')->nullable();
$table->tinyInteger('status')->default(REQUEST_OPEN);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('contact_requests');
}
}