Query
CREATE TABLE "group_to_categories" (
group_id CHAR(32),
category_id CHAR(32),
CONSTRAINT group_id_category_id_key UNIQUE (group_id, category_id),
FOREIGN KEY(category_id) REFERENCES categories (id),
FOREIGN KEY(group_id) REFERENCES groups (id)
)