Remove sender_type and receiver_type from log.messages

This commit is contained in:
ARCHITECT
2026-01-01 12:08:37 +00:00
parent 8229446129
commit f52fd1fefc
2 changed files with 0 additions and 5 deletions

View File

@@ -12,9 +12,7 @@ Registra todos los mensajes entre usuarios y agentes IA.
| hash | CHAR(64) | SHA256 único del mensaje | | hash | CHAR(64) | SHA256 único del mensaje |
| session_hash | CHAR(64) | SHA256 de la sesión | | session_hash | CHAR(64) | SHA256 de la sesión |
| thread_hash | CHAR(64) | SHA256 del hilo (nullable) | | 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) | | 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) | | receiver_id | CHAR(64) | Hash del receptor (ref players) |
| leader_id | CHAR(64) | Coordinador multiagente (nullable) | | leader_id | CHAR(64) | Coordinador multiagente (nullable) |
| role | TEXT | Rol del emisor | | role | TEXT | Rol del emisor |

View File

@@ -10,7 +10,6 @@ CREATE SCHEMA log;
CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE EXTENSION IF NOT EXISTS pgcrypto;
-- Tipos -- Tipos
CREATE TYPE log.actor_type AS ENUM ('user', 'agent', 'orchestrator', 'system', 'tool');
CREATE TYPE log.ref_type AS ENUM ('context', 'accountant', 'secretary'); CREATE TYPE log.ref_type AS ENUM ('context', 'accountant', 'secretary');
-- ============================================ -- ============================================
@@ -21,9 +20,7 @@ CREATE TABLE log.messages (
hash CHAR(64) UNIQUE NOT NULL, hash CHAR(64) UNIQUE NOT NULL,
session_hash CHAR(64) NOT NULL, session_hash CHAR(64) NOT NULL,
thread_hash CHAR(64), thread_hash CHAR(64),
sender_type log.actor_type NOT NULL,
sender_id CHAR(64) NOT NULL, sender_id CHAR(64) NOT NULL,
receiver_type log.actor_type NOT NULL,
receiver_id CHAR(64) NOT NULL, receiver_id CHAR(64) NOT NULL,
leader_id CHAR(64), leader_id CHAR(64),
role TEXT, role TEXT,