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

@@ -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,