mirror of
https://github.com/dyzulk/trustlab-api.git
synced 2026-01-26 05:15:35 +07:00
35 lines
890 B
PHP
35 lines
890 B
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('inquiries', function (Blueprint $table) {
|
|
$table->uuid('id')->primary();
|
|
$table->string('name');
|
|
$table->string('email');
|
|
$table->string('category')->nullable();
|
|
$table->string('subject');
|
|
$table->text('message');
|
|
$table->enum('status', ['pending', 'replied'])->default('pending');
|
|
$table->timestamp('replied_at')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('inquiries');
|
|
}
|
|
};
|