瀏覽代碼

add system_prompt & real_name & avatar

visuddhinanda 1 年之前
父節點
當前提交
0dbe817d82
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      api-v8/database/migrations/2025_01_27_152548_create_ai_models_table.php

+ 3 - 0
api-v8/database/migrations/2025_01_27_152548_create_ai_models_table.php

@@ -17,10 +17,13 @@ class CreateAiModelsTable extends Migration
             $table->id();
             $table->id();
             $table->uuid('uid')->unique();
             $table->uuid('uid')->unique();
             $table->string('name', 64)->index();
             $table->string('name', 64)->index();
+            $table->string('real_name', 64)->unique();
+            $table->uuid('avatar',)->nullable()->index();
             $table->text('description')->nullable();
             $table->text('description')->nullable();
             $table->string('url', 1024)->nullable()->index();
             $table->string('url', 1024)->nullable()->index();
             $table->string('model', 1024)->nullable()->index();
             $table->string('model', 1024)->nullable()->index();
             $table->string('key', 1024)->nullable();
             $table->string('key', 1024)->nullable();
+            $table->text('system_prompt')->nullable();
             $table->string('privacy', 32)->index()->default('private')->comment('隐私性:private|public');
             $table->string('privacy', 32)->index()->default('private')->comment('隐私性:private|public');
             $table->uuid('owner_id')->index()->comment('任务拥有者:用户或者team-space');
             $table->uuid('owner_id')->index()->comment('任务拥有者:用户或者team-space');
             $table->uuid('editor_id')->index();
             $table->uuid('editor_id')->index();