BEGIN;


--- event processing

DROP TRIGGER amazon_store_events ON mock.raw_shop_events;
DROP FUNCTION mock.process_raw_amazon_event;

DROP TRIGGER big_cartel_store_events ON mock.raw_shop_events;
DROP FUNCTION mock.process_raw_big_cartel_event;

DROP TRIGGER ebay_store_events ON mock.raw_shop_events;
DROP FUNCTION mock.process_raw_ebay_event;

DROP TRIGGER ecwid_store_events ON mock.raw_shop_events;
DROP FUNCTION mock.process_raw_ecwid_event;

DROP TRIGGER etsy_store_events ON mock.raw_shop_events;
DROP FUNCTION mock.process_raw_etsy_event;

DROP TRIGGER shopify_store_events ON mock.raw_shop_events;
DROP FUNCTION mock.process_raw_shopify_event;

DROP TRIGGER square_online_store_events ON mock.raw_shop_events;
DROP FUNCTION mock.process_raw_square_online_event;

DROP TRIGGER squarespace_store_events ON mock.raw_shop_events;
DROP FUNCTION mock.process_raw_squarespace_event;

DROP TRIGGER tiktok_store_events ON mock.raw_shop_events;
DROP FUNCTION mock.process_raw_tiktok_event;

DROP TRIGGER walmart_marketplace_store_events ON mock.raw_shop_events;
DROP FUNCTION mock.process_raw_walmart_marketplace_event;

DROP TRIGGER wix_store_events ON mock.raw_shop_events;
DROP FUNCTION mock.process_raw_wix_event;

DROP TRIGGER woo_commerce_store_events ON mock.raw_shop_events;
DROP FUNCTION mock.process_raw_woo_commerce_event;

DROP TRIGGER zoho_store_events ON mock.raw_shop_events;
DROP FUNCTION mock.process_raw_zoho_event;

-- event tables

DROP TABLE mock.shop_amazon_events;
DROP TABLE mock.shop_big_cartel_events;
DROP TABLE mock.shop_ebay_events;
DROP TABLE mock.shop_ecwid_events;
DROP TABLE mock.shop_etsy_events;
DROP TABLE mock.shop_shopify_events;
DROP TABLE mock.shop_square_online_events;
DROP TABLE mock.shop_squarespace_events;
DROP TABLE mock.shop_tiktok_events;
DROP TABLE mock.shop_walmart_marketplace_events;
DROP TABLE mock.shop_wix_events;
DROP TABLE mock.shop_woo_commerce_events;
DROP TABLE mock.shop_zoho_events;
DROP TABLE mock.raw_shop_events;


COMMIT;
