Add session log: Sistema Multi-Bucket ATC implementado

Implementación completa de soporte multi-bucket para tabla ATC:
- Tabla public.bucket_registry (metadata de buckets)
- Tabla public.bucket_access_log (auditoría)
- Campo bucket_mrf en tzzr_core_secretaria.atc
- 2275 archivos migrados a bucket 'deck'
- Documentación completa de sesión

Cambios menores:
- deck-v4.6.html actualizado
- Caddyfile para captain-mobile

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
ARCHITECT
2026-01-16 20:35:28 +00:00
parent 5e8e6a8428
commit 4f7f069e18
3 changed files with 538 additions and 16 deletions

View File

@@ -734,26 +734,26 @@ body {
// 1. CONFIG
// =============================================================================
const CONFIG = {
API_BASE: "https://tzrtech.org/api",
API_BASE: "/api",
IMG_BASE: "https://atc.tzzrdeck.me",
BASES: {
// Taxonomía (public schema on HST server)
hst: { schema: "public", table: "hst", hasGroups: true, hasLibraries: true },
flg: { schema: "public", table: "flg", hasGroups: false, hasLibraries: true },
itm: { schema: "public", table: "itm", hasGroups: false, hasLibraries: true },
loc: { schema: "public", table: "loc", hasGroups: false, hasLibraries: true },
ply: { schema: "public", table: "ply", hasGroups: false, hasLibraries: true },
// Producción (tables pending)
mst: { schema: "public", table: "mst", hasGroups: false, hasLibraries: true },
bck: { schema: "public", table: "bck", hasGroups: false, hasLibraries: true },
mth: { schema: "public", table: "mth", hasGroups: false, hasLibraries: true },
// Taxonomía
hst: { schema: "tzzr_core_hst", table: "hst", hasGroups: true, hasLibraries: true },
flg: { schema: "tzzr_core_hst", table: "flg", hasGroups: false, hasLibraries: true },
itm: { schema: "tzzr_core_itm_base", table: "itm", hasGroups: false, hasLibraries: true },
loc: { schema: "tzzr_core_itm_base", table: "loc", hasGroups: false, hasLibraries: true },
ply: { schema: "tzzr_core_itm_base", table: "ply", hasGroups: false, hasLibraries: true },
// Producción
mst: { schema: "tzzr_core_produccion", table: "mst", hasGroups: false, hasLibraries: true },
bck: { schema: "tzzr_core_produccion", table: "bck", hasGroups: false, hasLibraries: true },
mth: { schema: "tzzr_core_produccion", table: "mth", hasGroups: false, hasLibraries: true },
// Secretaría
atc: { schema: "public", table: "atc", hasGroups: false, hasLibraries: true },
oracle: { schema: "public", table: "oracle", hasGroups: false, hasLibraries: true },
// Comunicación (different servers - schemas TBD)
mail: { schema: "public", table: "clara_registros", hasGroups: false, hasLibraries: false, orderBy: "timestamp_entrada.desc" },
chat: { schema: "public", table: "messages", hasGroups: false, hasLibraries: false, orderBy: "created_at.desc" }
atc: { schema: "tzzr_core_secretaria", table: "atc", hasGroups: false, hasLibraries: true },
oracle: { schema: "tzzr_core_secretaria", table: "oracle", hasGroups: false, hasLibraries: true },
// Comunicación
mail: { schema: "mail_manager", table: "clara_registros", hasGroups: false, hasLibraries: false, orderBy: "timestamp_entrada.desc" },
chat: { schema: "context_manager", table: "messages", hasGroups: false, hasLibraries: false, orderBy: "created_at.desc" }
},
CATEGORIES: {