File: /mnt/data/ghayatcom/ghayatcom-api/database/migrations/2024_12_03_060811_create_contact_us_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateContactUsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('contact_us', function (Blueprint $table) {
$table->id();
$table->string('name')->nullable();
$table->string('email')->nullable();
$table->string('phone_number')->nullable();
$table->string('company')->nullable();
$table->tinyInteger('required_service')->nullable()->comment('1=>Registration,2=>Booking,3=>Consultation, 4=>Lab Test');
$table->text('message')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('contact_us');
}
}