43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
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.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
Schema::create('consultations', function (Blueprint $table) {
|
|
$table->id();
|
|
// Which site form the request came from: home, services or contact.
|
|
$table->string('source');
|
|
$table->string('name');
|
|
$table->string('company')->nullable();
|
|
$table->string('job_title')->nullable();
|
|
$table->string('email');
|
|
$table->string('phone');
|
|
$table->string('industry')->nullable();
|
|
$table->string('service')->nullable();
|
|
$table->string('timeline')->nullable();
|
|
$table->text('details')->nullable();
|
|
$table->boolean('nda_agreed')->default(false);
|
|
$table->string('locale', 2)->default('id');
|
|
$table->string('status')->default('new')->index();
|
|
$table->text('admin_notes')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('consultations');
|
|
}
|
|
};
|