CREATE TABLE h2_hosts(
    id SERIAL PRIMARY KEY,
    name TEXT NOT NULL,
    url TEXT NOT NULL
);
CREATE UNIQUE INDEX h2_hosts_uindex ON h2_hosts(id);

CREATE TABLE h2_users (
    id SERIAL PRIMARY KEY,
    tg_id INT8 REFERENCES users(id),
    username TEXT NOT NULL,
    password TEXT NOT NULL
);
CREATE UNIQUE INDEX h2_users_uindex ON h2_users(id);
CREATE INDEX h2_users_index ON h2_users(tg_id, username);