SET NOCOUNT ON; SELECT name AS table_name FROM sys.tables WHERE name IN ( 'wcs_control_lease', 'wcs_device_command', 'wcs_device_execution', 'wcs_command_outbox', 'wcs_wms_notification_outbox', 'wcs_device_snapshot', 'wcs_device_event', 'wcs_alarm', 'wcs_recovery_case', 'wcs_manual_action_audit' ) ORDER BY name; SELECT i.name AS index_name, t.name AS table_name, i.is_unique FROM sys.indexes i JOIN sys.tables t ON t.object_id = i.object_id WHERE i.name IN ( 'uk_wcs_recovery_case_open', 'uk_wcs_wms_outbox_event', 'ix_wcs_device_command_device_state', 'ix_wcs_device_command_order_step', 'ix_wcs_resource_reservation_resource_state', 'ix_wcs_recovery_case_state_created' ) ORDER BY i.name; SELECT c.name AS constraint_name FROM sys.check_constraints c WHERE c.name IN ( 'ck_wcs_control_lease_fencing', 'ck_wcs_device_execution_fencing', 'ck_wcs_command_outbox_fencing', 'ck_wcs_recovery_case_expected_facts' ) ORDER BY c.name;