From f52fd1fefc4226af4287b89212f4338deb360dac Mon Sep 17 00:00:00 2001 From: ARCHITECT Date: Thu, 1 Jan 2026 12:08:37 +0000 Subject: [PATCH] Remove sender_type and receiver_type from log.messages --- docs/LOG.md | 2 -- schemas/04_log.sql | 3 --- 2 files changed, 5 deletions(-) diff --git a/docs/LOG.md b/docs/LOG.md index 0a277ae..ab5ea41 100644 --- a/docs/LOG.md +++ b/docs/LOG.md @@ -12,9 +12,7 @@ Registra todos los mensajes entre usuarios y agentes IA. | hash | CHAR(64) | SHA256 único del mensaje | | session_hash | CHAR(64) | SHA256 de la sesión | | thread_hash | CHAR(64) | SHA256 del hilo (nullable) | -| sender_type | ENUM | user, agent, orchestrator, system, tool | | sender_id | CHAR(64) | Hash del emisor (ref players) | -| receiver_type | ENUM | user, agent, orchestrator, system, tool | | receiver_id | CHAR(64) | Hash del receptor (ref players) | | leader_id | CHAR(64) | Coordinador multiagente (nullable) | | role | TEXT | Rol del emisor | diff --git a/schemas/04_log.sql b/schemas/04_log.sql index 5939fb6..c39ea92 100644 --- a/schemas/04_log.sql +++ b/schemas/04_log.sql @@ -10,7 +10,6 @@ CREATE SCHEMA log; CREATE EXTENSION IF NOT EXISTS pgcrypto; -- Tipos -CREATE TYPE log.actor_type AS ENUM ('user', 'agent', 'orchestrator', 'system', 'tool'); CREATE TYPE log.ref_type AS ENUM ('context', 'accountant', 'secretary'); -- ============================================ @@ -21,9 +20,7 @@ CREATE TABLE log.messages ( hash CHAR(64) UNIQUE NOT NULL, session_hash CHAR(64) NOT NULL, thread_hash CHAR(64), - sender_type log.actor_type NOT NULL, sender_id CHAR(64) NOT NULL, - receiver_type log.actor_type NOT NULL, receiver_id CHAR(64) NOT NULL, leader_id CHAR(64), role TEXT,