--up

CREATE INDEX conductor_requests_timestamp_user_id_idx ON conductor_requests (timestamp, user_id);
CREATE INDEX service_quotas_timestamp_user_id_idx ON service_quotas (timestamp, user_id);
CREATE INDEX activity_timestamp_user_id_idx ON activity (timestamp, user_id);
ANALYZE conductor_requests;
ANALYZE service_quotas;
ANALYZE activity;

--down

DROP INDEX conductor_requests_timestamp_user_id_idx;
DROP INDEX service_quotas_timestamp_user_id_idx;
DROP INDEX activity_timestamp_user_id_idx;