Files
leadcast/backend/migrations/0007_add_guest_extraction_names_only_purpose.sql
2026-07-28 20:23:41 -03:00

7 lines
326 B
SQL

ALTER TABLE ai_calls DROP CONSTRAINT ai_calls_purpose_check;
ALTER TABLE ai_calls ADD CONSTRAINT ai_calls_purpose_check CHECK (purpose IN (
'guest_extraction', 'guest_extraction_names_only', 'contact_extraction', 'categorization',
'identity_resolution', 'page_relevance', 'summary', 'profile_refinement', 'other'
));