Files

9 lines
646 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- Отключение агента у менеджера: на время (paused_until) или до команды владельца (agent_paused).
-- Отключённому агенту ассистент ничего не пишет и не обрабатывает его сообщения (события, шаг 2, ответы в чате).
alter table construction_manager
alter column paused_until type timestamptz using ((paused_until + 1)::timestamp at time zone 'UTC'),
add column agent_paused boolean not null default false,
add column pause_reason text,
add column paused_by text,
add column paused_at timestamptz;