feat:adds LLM capabilities to chat with your portfolios and holdings

This commit is contained in:
hackerESQ
2024-10-31 12:09:06 -05:00
parent 4cde6b82ea
commit 4c1da2308e
20 changed files with 1662 additions and 181 deletions
@@ -0,0 +1,40 @@
<?php
use App\Models\User;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Builder;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAiChatsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Builder::morphUsingUuids();
Schema::create('ai_chats', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->foreignIdFor(User::class, 'user_id')->constrained()->onDelete('cascade');
$table->morphs('chatable');
$table->string('role');
$table->text('content');
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('ai_chats');
}
}