uuid('id')->primary(); $table->string('role'); // user | assistant | system | tool $table->text('content'); $table->string('type')->default('text'); // text | proactive | voice | tool_use $table->jsonb('metadata')->nullable(); $table->timestamps(); $table->index('role'); $table->index('type'); $table->index('created_at'); }); } public function down(): void { Schema::dropIfExists('messages'); } };