DELETE FROM mesh_qos_policies
WHERE service_class IN ('remote_workspace', 'video')
  AND metadata->>'fabric_service_channel' = 'true';

ALTER TABLE mesh_route_intents
    DROP CONSTRAINT IF EXISTS mesh_route_intents_service_class_check;

ALTER TABLE mesh_route_intents
    ADD CONSTRAINT mesh_route_intents_service_class_check
        CHECK (service_class IN ('input', 'control', 'synthetic', 'render', 'clipboard', 'file_transfer', 'vpn_packets', 'telemetry'));

ALTER TABLE mesh_qos_policies
    DROP CONSTRAINT IF EXISTS mesh_qos_policies_service_class_check;

ALTER TABLE mesh_qos_policies
    ADD CONSTRAINT mesh_qos_policies_service_class_check
        CHECK (service_class IN ('input', 'control', 'synthetic', 'render', 'clipboard', 'file_transfer', 'vpn_packets', 'telemetry'));
