DROP TABLE IF EXISTS doki8902.comment CASCADE;
DROP TABLE IF EXISTS doki8902.post CASCADE;
DROP TABLE IF EXISTS doki8902.post_category CASCADE;
DROP TABLE IF EXISTS doki8902.message_initial CASCADE;
DROP TABLE IF EXISTS doki8902.message_content CASCADE;
DROP TABLE IF EXISTS doki8902.message_vote CASCADE;
DROP TABLE IF EXISTS doki8902.message CASCADE;
DROP TABLE IF EXISTS doki8902.user_action_log CASCADE;
DROP TABLE IF EXISTS doki8902.user_session CASCADE;
DROP TABLE IF EXISTS doki8902.user CASCADE;


DROP FUNCTION IF EXISTS doki8902.func_update_message_comment_content_trigger;
DROP FUNCTION IF EXISTS doki8902.func_create_message_comment_trigger;
DROP FUNCTION IF EXISTS doki8902.func_update_message_post_content_trigger;
DROP FUNCTION IF EXISTS doki8902.func_create_message_post_trigger;
DROP FUNCTION IF EXISTS doki8902.func_require_user_trigger;
DROP FUNCTION IF EXISTS doki8902.func_log_message_delete_trigger;
DROP FUNCTION IF EXISTS doki8902.func_vote_own_created_message_trigger;
DROP FUNCTION IF EXISTS doki8902.func_approve_all_pending_content;
DROP FUNCTION IF EXISTS doki8902.func_remove_sessions_password_trigger;

DROP FUNCTION IF EXISTS doki8902.func_update_message_contents_trigger;
DROP FUNCTION IF EXISTS doki8902.func_log_user_restrict;
DROP FUNCTION IF EXISTS doki8902.func_log_user_trigger;
DROP FUNCTION IF EXISTS doki8902.func_log_message_trigger;
DROP FUNCTION IF EXISTS doki8902.func_log_action;


DROP TYPE IF EXISTS doki8902.user_access_type;
DROP TYPE IF EXISTS doki8902.user_action_type;
