CREATE TABLE IF NOT EXISTS sprav.photo_ids (
    photo_key text PRIMARY KEY,
    photo_id text NOT NULL
);

CREATE TABLE IF NOT EXISTS sprav.permalink_photo (
    permalink_id bigint,
    photo_id text NOT NULL
);
CREATE INDEX ON sprav.permalink_photo USING btree (permalink_id);
