DROP TRIGGER IF EXISTS messages_search_trigger ON messages;
DROP FUNCTION IF EXISTS messages_search_vector_update();
DROP TABLE IF EXISTS webhook_logs;
DROP TABLE IF EXISTS webhook_templates;
DROP TABLE IF EXISTS outbox;
DROP TABLE IF EXISTS mail_rules;
DROP TABLE IF EXISTS attachments;
DROP TABLE IF EXISTS messages;
DROP TABLE IF EXISTS mail_folders;
DROP TABLE IF EXISTS mail_identities;
DROP TABLE IF EXISTS mail_accounts;
