-- 删除所有索引
DROP INDEX IF EXISTS idx_projects_name;
DROP INDEX IF EXISTS idx_projects_created_at;
DROP INDEX IF EXISTS idx_materials_project_id;
DROP INDEX IF EXISTS idx_materials_processing_status;
DROP INDEX IF EXISTS idx_materials_material_type;
DROP INDEX IF EXISTS idx_materials_created_at;
DROP INDEX IF EXISTS idx_material_segments_material_id;
DROP INDEX IF EXISTS idx_material_segments_duration;
DROP INDEX IF EXISTS idx_video_classification_records_segment_id;
DROP INDEX IF EXISTS idx_video_classification_records_status;
DROP INDEX IF EXISTS idx_video_classification_records_result;
DROP INDEX IF EXISTS idx_template_materials_template_id;
DROP INDEX IF EXISTS idx_template_materials_upload_status;
DROP INDEX IF EXISTS idx_template_materials_original_id;
DROP INDEX IF EXISTS idx_watermark_processing_results_material_id;
DROP INDEX IF EXISTS idx_watermark_processing_results_success;

-- 删除所有表（按依赖关系倒序）
DROP TABLE IF EXISTS watermark_processing_results;
DROP TABLE IF EXISTS watermark_templates;
DROP TABLE IF EXISTS template_matching_results;
DROP TABLE IF EXISTS track_segments;
DROP TABLE IF EXISTS tracks;
DROP TABLE IF EXISTS template_materials;
DROP TABLE IF EXISTS templates;
DROP TABLE IF EXISTS video_classification_records;
DROP TABLE IF EXISTS ai_classifications;
DROP TABLE IF EXISTS model_photos;
DROP TABLE IF EXISTS models;
DROP TABLE IF EXISTS material_segments;
DROP TABLE IF EXISTS materials;
DROP TABLE IF EXISTS projects;
