ALTER TABLE dagdb_receipts DROP CONSTRAINT IF EXISTS dagdb_receipts_event_type_check;
ALTER TABLE dagdb_receipts
    ADD CONSTRAINT dagdb_receipts_event_type_check
    CHECK (event_type IN ('intake_created','duplicate_rejected','validation_created','validation_passed','validation_failed','memory_approved','memory_routable','memory_revoked','memory_superseded','route_created','route_activated','route_stale','route_invalidated','context_packet_created','writeback_created','trust_check_created','council_decision_recorded','dag_finality_committed','dag_finality_failed','dag_finality_compensated','export_created','export_verified','export_failed','export_challenge_created','export_challenge_verified','dagdb_approval_request_submitted','dagdb_approval_granted','dagdb_approval_denied','dagdb_record_accepted','dagdb_import_completed','dagdb_export_completed','dagdb_replay_detected','dagdb_idempotency_conflict','dagdb_rls_tenant_violation','dagdb_signature_failure','dagdb_council_operator_decision'));
