CREATE TABLE slug_aliases (
    id bigserial PRIMARY KEY,
    biz_id bigint NOT NULL,
    slug text NOT NULL,
    expiration_date timestamp default now() + '1 day'::interval
);
CREATE UNIQUE INDEX slug_aliases_biz_id_uq ON slug_aliases USING btree (biz_id);
CREATE UNIQUE INDEX slug_aliases_slug_uq ON slug_aliases USING btree (slug);
