DROP INDEX IF EXISTS ratings_symbol_idx;

DROP TABLE IF EXISTS stock_data;
DROP TABLE IF EXISTS ratings;
DROP TABLE IF EXISTS chart_analysis;
DROP TABLE IF EXISTS stock_rank;
DROP TABLE IF EXISTS stocks;

DROP TYPE IF EXISTS CHART_ACTION;
DROP TYPE IF EXISTS BAR_INTERVAL;
DROP TYPE IF EXISTS RANK_TYPE;