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,