CREATE TABLE social.grouped_notifications (
    uid bigint NOT NULL,
    type text NOT NULL,
    group_key text NOT NULL,
    pending bool NOT NULL DEFAULT FALSE,
    parameters json NOT NULL,

    PRIMARY KEY (uid, type, group_key)
);
