CREATE TABLE chats (
    chat_id SERIAL PRIMARY KEY,
    search_id text UNIQUE NOT NULL,
    title text NOT NULL,
    handler_chat_id text,
    topic text,
    object_id character varying(36),
    is_archive boolean,
    flags integer
);
