feat: chat topic added

This commit is contained in:
2026-06-03 16:28:49 +03:30
parent c52a234835
commit c930c26589
4 changed files with 121 additions and 0 deletions
@@ -0,0 +1,31 @@
<?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('chat_topics', function (Blueprint $table) {
$table->id();
$table->string('title'); // chip text shown in the advisor chat
$table->text('description')->nullable();
$table->integer('order')->default(0);
$table->boolean('is_active')->default(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('chat_topics');
}
};