v1.8.0: YandexGPT-only NLP, unknown questions system, callback dedup, consent flow fixes, DELETE cascade, UTC+3, auto-detect sidebar menu, tel:/mailto: links
This commit is contained in:
@@ -156,6 +156,18 @@ DROP TABLE IF EXISTS bot_broadcasts CASCADE;
|
||||
DROP TABLE IF EXISTS file_sync_queue CASCADE;
|
||||
DROP TABLE IF EXISTS bot_response_templates CASCADE;
|
||||
|
||||
-- 11. BOT PROCESSING LOGS (diagnostics & dialogues page)
|
||||
CREATE TABLE IF NOT EXISTS bot_processing_logs (
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
user_id BIGINT NOT NULL REFERENCES bot_users(id) ON DELETE CASCADE,
|
||||
conversation_id BIGINT REFERENCES bot_conversations(id) ON DELETE SET NULL,
|
||||
step VARCHAR(50) NOT NULL,
|
||||
status VARCHAR(20) DEFAULT 'ok',
|
||||
message TEXT,
|
||||
detail TEXT,
|
||||
created_at TIMESTAMP DEFAULT now()
|
||||
);
|
||||
|
||||
-- ============================================
|
||||
-- INDEXES
|
||||
-- ============================================
|
||||
|
||||
Reference in New Issue
Block a user