perf: 支持自定义AI个人提示词

This commit is contained in:
kuaifan
2024-12-03 08:28:13 +08:00
parent 65e75f974d
commit df917001d3
6 changed files with 264 additions and 3 deletions
@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateWebSocketDialogConfigsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if (!Schema::hasTable('web_socket_dialog_configs')) {
Schema::create('web_socket_dialog_configs', function (Blueprint $table) {
$table->id();
$table->bigInteger('dialog_id')->unsigned()->index()->comment('对话ID');
$table->bigInteger('userid')->unsigned()->index()->comment('用户ID');
$table->string('type', 50)->default('')->comment('配置类型');
$table->text('value')->nullable()->comment('配置值');
$table->timestamps();
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('web_socket_dialog_configs');
}
}