Orquestador del Sistema Productivo. Plomería conversacional entre el Director Creativo (WhatsApp vía Evolution API) y los empleados Collina (vía colas Redis). Estado semilla: solo canaliza con Valeria #31. - FastAPI + lifespan (Postgres pool, Redis, despachador, job de expiración) - Parser de comandos (invocar/pausa/volver/cerrar/salir/ayuda/estado) - Gestor de sesiones (activa/pausada/cerrada/expirada) en Postgres - Canalizador → cola del empleado destino - Despachador ← quetzalcoatl:envios → Evolution API - Roster de 34 empleados con búsqueda flexible - SQL schema + seed - Tests de comandos y roster
57 lines
5.7 KiB
SQL
57 lines
5.7 KiB
SQL
-- =============================================================================
|
|
-- COLLINA SYSTEMS · Seed del roster con flags de activación
|
|
-- =============================================================================
|
|
-- Pobla collina_canon.empleados con los 34 empleados del Master Document v2.1.
|
|
-- El flag `activo` indica si Quetzalcóatl puede canalizar a ese empleado HOY.
|
|
-- Solo Valeria está activa en estado semilla.
|
|
-- Idempotente: usa ON CONFLICT para que pueda re-ejecutarse.
|
|
-- =============================================================================
|
|
|
|
INSERT INTO collina_canon.empleados
|
|
(id, nombre, rol, division, raiz_estetica, estado, activo, cola_entrada)
|
|
VALUES
|
|
(1, 'Smith', 'Backend Architect', 'Producto y Tecnología', NULL, 'semilla', false, NULL),
|
|
(2, 'Vaal', 'Database Optimizer', 'Producto y Tecnología', NULL, 'semilla', false, NULL),
|
|
(3, 'Eren', 'DevOps Automator', 'Producto y Tecnología', NULL, 'semilla', false, NULL),
|
|
(4, 'Shiva', 'Software Architect', 'Producto y Tecnología', NULL, 'semilla', false, NULL),
|
|
(5, 'Jim', 'AI Engineer', 'Producto y Tecnología', NULL, 'semilla', false, NULL),
|
|
(6, 'Elize', 'Data Engineer', 'Producto y Tecnología', NULL, 'semilla', false, NULL),
|
|
(7, 'Bull', 'Security Engineer', 'Producto y Tecnología', NULL, 'semilla', false, NULL),
|
|
(8, 'Donnie', 'Threat Detection Engineer', 'Producto y Tecnología', NULL, 'semilla', false, NULL),
|
|
(9, 'Levy', 'SRE', 'Producto y Tecnología', NULL, 'semilla', false, NULL),
|
|
(10, 'Aleks', 'Code Reviewer', 'Verificación y Reality', NULL, 'construyendo', false, NULL),
|
|
(11, 'Mr. Anderson', 'Reality Checker', 'Verificación y Reality', NULL, 'semilla', false, NULL),
|
|
(12, 'Cynthia', 'Evidence Collector', 'Verificación y Reality', NULL, 'semilla', false, NULL),
|
|
(13, 'Quetzalcóatl', 'Orquestador del Sistema Productivo', 'Operación y Coordinación',
|
|
'Serpiente emplumada mesoamericana · puente humano-máquina', 'construyendo', true, NULL),
|
|
(14, 'Saint-Germain', 'Historiador-PyT', 'Memoria Institucional', NULL, 'semilla', false, NULL),
|
|
(15, 'Tom', 'Historiador-VyR', 'Memoria Institucional', NULL, 'semilla', false, NULL),
|
|
(16, 'Selenite', 'Historiador-MyC', 'Memoria Institucional', NULL, 'semilla', false, NULL),
|
|
(17, 'Gina', 'Historiador-OID', 'Memoria Institucional', NULL, 'semilla', false, NULL),
|
|
(18, 'Xavi', 'Historiador-Casos', 'Memoria Institucional', NULL, 'semilla', false, NULL),
|
|
(19, 'Friedrich', 'Historiador-Memoria', 'Memoria Institucional', NULL, 'semilla', false, NULL),
|
|
(20, 'Sarah', 'Historiador Transversal', 'Memoria Institucional', NULL, 'semilla', false, NULL),
|
|
(21, 'Brahma', 'Historiador Final', 'Memoria Institucional', NULL, 'semilla', false, NULL),
|
|
(22, 'JP', 'Asistente del Director Creativo', 'Operación Interna del Director', NULL, 'semilla', false, NULL),
|
|
(23, 'Julio César Medellín','Outbound Strategist', 'Marketing y Comercial', NULL, 'semilla', false, NULL),
|
|
(24, 'Salma Cabello', 'Discovery Coach', 'Marketing y Comercial', NULL, 'semilla', false, NULL),
|
|
(25, 'Juan de la Torre', 'Sales Engineer', 'Marketing y Comercial', NULL, 'semilla', false, NULL),
|
|
(26, 'Jass Lyn', 'Deal Strategist', 'Marketing y Comercial', NULL, 'semilla', false, NULL),
|
|
(27, 'Vic', 'Proposal Strategist', 'Marketing y Comercial', NULL, 'semilla', false, NULL),
|
|
(28, 'Helena Dos Santos', 'Brand Guardian', 'Marketing y Comercial', NULL, 'semilla', false, NULL),
|
|
(29, 'Federico Sandoval', 'Visual Storyteller', 'Marketing y Comercial', NULL, 'semilla', false, NULL),
|
|
(30, 'Bárbara Freeman', 'Content Creator', 'Marketing y Comercial', NULL, 'semilla', false, NULL),
|
|
(31, 'Valeria', 'Document Stylist', 'Operación Interna del Director',
|
|
'Escriba egipcia antigua · caligrafía y transcripción ceremonial', 'construyendo', true, 'valeria:entrada'),
|
|
(32, 'Dr. Xan', 'Solution Health Monitor', 'Producto y Tecnología', NULL, 'semilla', false, NULL),
|
|
(33, 'Tiffany', 'Email Watcher', 'Operación y Coordinación', NULL, 'semilla', false, NULL),
|
|
(34, 'Cristóbal Puig', 'Trojan Designer', 'Producto y Tecnología', NULL, 'semilla', false, NULL)
|
|
ON CONFLICT (id) DO UPDATE SET
|
|
nombre = EXCLUDED.nombre,
|
|
rol = EXCLUDED.rol,
|
|
division = EXCLUDED.division,
|
|
raiz_estetica = COALESCE(EXCLUDED.raiz_estetica, collina_canon.empleados.raiz_estetica),
|
|
activo = EXCLUDED.activo,
|
|
cola_entrada = EXCLUDED.cola_entrada,
|
|
updated_at = now();
|