-- 000017 回滚
ALTER TABLE applications DROP CONSTRAINT IF EXISTS applications_dify_app_type_check;
ALTER TABLE applications ADD CONSTRAINT applications_dify_app_type_check
    CHECK (dify_app_type IN ('chatbot','completion','workflow','agent','ppt_generator','skill'));

DROP TABLE IF EXISTS research_tasks;
