create table subscriptions (
    id integer primary key not null,
    device_id bigint not null
        references devices (id)
        on delete cascade,
    url text not null,

    unique (device_id, url)
);
