DROP AGGREGATE last_not_null_value(text);
DROP FUNCTION last_not_null_final_func;
DROP FUNCTION last_not_null_transition_func;

DROP TABLE events_stat_precalced;
DROP TABLE lead_events;
DROP TABLE lead_revisions;
DROP TABLE leads;

DROP TYPE event_source;
DROP TYPE event_type;
DROP TYPE lead_source;
