{ "version": 1, "environment": "TEST", "confirmedScope": { "customers": "ALL", "business": "头程、海外仓、尾程、车队全部业务单据及关联库存、财务", "wallet": "测试充值、资金流水、实际余额清零;保留授信额度和有效期,释放冻结及授信占用", "selfOperated": "KEEP", "audit": "KEEP_INDEPENDENT_AUDIT_CLEAR_ORDER_HISTORY", "physicalFiles": "KEEP", "numberSequences": "KEEP" }, "sourceSha256": { "deploy/sql/头程数据库统一增量-MySQL8.sql": "20f8f8129dad86957872d68fdea81967b72e5bdc7f1adef612677cc59e091bf4", "deploy/sql/海外区域统一增量-MySQL8.sql": "db307236f5d0275c214db49888fe0d16d8a954802eb50ad5de52ed33ccfab4a7" }, "pendingReview": [ "精确 TEST 目标与实际结构、触发器定义、保留表外键及行数须在停写窗口重新核对;当前表清单不是维护窗口快照。", "实际删除保护触发器对应表的具体执行、恢复校验与失败恢复;不得将预览成功等同清库放行。", "资金账户服务时区和有效授信重算;国内库位、海外真实/虚拟库位、托盘、车辆及固定协调锁的字段重置条件。", "导出任务按业务类型白名单过滤;关联 Outbox 同步处理。保留消息及车辆运维的重新提交路径核对。", "基线外的表逐项核实;安全、序列、自营诊断保留,已空的历史业务表不扩大为删表操作。", "维护窗口、相关服务/任务写入者、消息重投及缓存范围;备份路径、完整性和恢复能力。", "实际删除/重置前精确目标与操作清单的授权;本策略仅为候选处理规则,无数据库执行能力。" ], "groups": [ { "action": "KEEP", "reason": "保留独立审计及其可靠投递证据,不将其混入业务事件清空。", "tables": [ "baiyue_audit.sys_audit_dead_letter", "baiyue_audit.sys_audit_log", "baiyue_auth.sys_audit_outbox", "baiyue_finance.event_delivery_attempt", "baiyue_finance.event_delivery_retry_audit", "baiyue_finance.fin_audit_log", "baiyue_firstleg.event_delivery_attempt", "baiyue_firstleg.event_delivery_retry_audit", "baiyue_firstleg.sys_audit_outbox", "baiyue_iam.sys_audit_outbox", "baiyue_lastleg.event_delivery_attempt", "baiyue_lastleg.event_delivery_retry_audit", "baiyue_order.sys_audit_outbox", "baiyue_warehouse.sys_audit_outbox" ] }, { "action": "KEEP", "reason": "保留身份、客户、权限、基础资料和配置初始化事实;账号会话不在本次清理范围。", "tables": [ "baiyue_auth.auth_account", "baiyue_auth.auth_refresh_token", "baiyue_iam.iam_customer_dimension_initialization_task", "baiyue_iam.iam_data_scope", "baiyue_iam.iam_membership", "baiyue_iam.iam_membership_role", "baiyue_iam.iam_notification_template", "baiyue_iam.iam_number_sequence", "baiyue_iam.iam_permission", "baiyue_iam.iam_role", "baiyue_iam.iam_role_permission", "baiyue_iam.iam_security_subject_version", "baiyue_iam.iam_security_tenant_version", "baiyue_iam.iam_tenant", "baiyue_iam.iam_tenant_address", "baiyue_iam.iam_tenant_qualification", "baiyue_iam.iam_tenant_review", "baiyue_iam.iam_user" ] }, { "action": "KEEP", "reason": "保留物理文件对应元数据、下载记录、PDA发布及固定保护行,不整库清理文件。", "tables": [ "baiyue_file.file_download_log", "baiyue_file.file_download_token", "baiyue_file.file_export_task_guard", "baiyue_file.file_object", "baiyue_file.file_pda_release", "baiyue_file.file_pda_release_channel" ] }, { "action": "REVIEW", "reason": "按明确 export_type 白名单清除订单、库存和财务导出任务及其 Outbox;客户资料、报价、汇率、车辆及自营导出保留。未知导出类型不自动删除,物理文件与 file_object 不动。", "tables": [ "baiyue_file.file_export_outbox", "baiyue_file.file_export_task" ] }, { "action": "CLEAR_CANDIDATE", "reason": "全部客户的业务单据、库存、费用资金、关联明细及业务消息/幂等/占用的清空候选;只表示业务范围,须审阅外键、触发器、实际结构和运行写入者后形成执行方案。", "tables": [ "baiyue_finance.fin_bill", "baiyue_finance.fin_bill_line", "baiyue_finance.fin_bill_revision", "baiyue_finance.fin_cost", "baiyue_finance.fin_cost_allocation", "baiyue_finance.fin_fee_source", "baiyue_finance.fin_idempotency_record", "baiyue_finance.fin_inbox_event", "baiyue_finance.fin_receipt", "baiyue_finance.fin_receipt_bill", "baiyue_finance.fin_recharge_request", "baiyue_finance.fin_settlement", "baiyue_finance.fin_settlement_line", "baiyue_finance.fin_settlement_payment", "baiyue_finance.fin_vehicle_cost", "baiyue_finance.fin_vehicle_cost_payment", "baiyue_finance.fin_vehicle_cost_revision", "baiyue_finance.fin_wallet_command_inbox", "baiyue_finance.fin_wallet_event_outbox", "baiyue_finance.fin_wallet_hold", "baiyue_finance.fin_wallet_ledger", "baiyue_firstleg.fl_carrier_schedule_exception_fact", "baiyue_firstleg.fl_carrier_schedule_node_fact", "baiyue_firstleg.fl_carrier_schedule_query", "baiyue_firstleg.fl_carrier_schedule_query_attempt", "baiyue_firstleg.fl_carrier_schedule_query_operation", "baiyue_firstleg.fl_coload_command", "baiyue_firstleg.fl_coload_group", "baiyue_firstleg.fl_coload_group_member", "baiyue_firstleg.fl_consumed_event", "baiyue_firstleg.fl_container_booking", "baiyue_firstleg.fl_container_document", "baiyue_firstleg.fl_container_event_inbox", "baiyue_firstleg.fl_container_fee_detail", "baiyue_firstleg.fl_container_fee_source_snapshot", "baiyue_firstleg.fl_customs_broker_submission", "baiyue_firstleg.fl_customs_clearance_result", "baiyue_firstleg.fl_customs_command", "baiyue_firstleg.fl_customs_completion_document", "baiyue_firstleg.fl_customs_completion_document_version", "baiyue_firstleg.fl_customs_container", "baiyue_firstleg.fl_customs_customer_document", "baiyue_firstleg.fl_customs_customer_document_inbound", "baiyue_firstleg.fl_customs_customer_document_version", "baiyue_firstleg.fl_customs_declaration_batch", "baiyue_firstleg.fl_customs_final_document", "baiyue_firstleg.fl_customs_frozen_document_inbound", "baiyue_firstleg.fl_direct_delivery_unloading", "baiyue_firstleg.fl_dropship_pallet", "baiyue_firstleg.fl_dropship_pallet_carton", "baiyue_firstleg.fl_dropship_pallet_carton_sku", "baiyue_firstleg.fl_dropship_pallet_task", "baiyue_firstleg.fl_finance_fee_source_command", "baiyue_firstleg.fl_fulfillment_task", "baiyue_firstleg.fl_inbound_carton_label", "baiyue_firstleg.fl_inbound_carton_label_sku", "baiyue_firstleg.fl_inbound_destination_snapshot", "baiyue_firstleg.fl_inbound_fee", "baiyue_firstleg.fl_inbound_fee_detail", "baiyue_firstleg.fl_inbound_fee_item", "baiyue_firstleg.fl_inbound_file", "baiyue_firstleg.fl_inbound_hold_record", "baiyue_firstleg.fl_inbound_idempotency", "baiyue_firstleg.fl_inbound_internal_note", "baiyue_firstleg.fl_inbound_loading_pick_task", "baiyue_firstleg.fl_inbound_measurement", "baiyue_firstleg.fl_inbound_measurement_item", "baiyue_firstleg.fl_inbound_order", "baiyue_firstleg.fl_inbound_outbox", "baiyue_firstleg.fl_inbound_pallet_allocation", "baiyue_firstleg.fl_inbound_pickup_snapshot", "baiyue_firstleg.fl_inbound_split_batch", "baiyue_firstleg.fl_inbound_split_detail", "baiyue_firstleg.fl_inbound_split_item", "baiyue_firstleg.fl_inbound_transport_snapshot", "baiyue_firstleg.fl_inbound_weight_result", "baiyue_firstleg.fl_inbound_weight_revision", "baiyue_firstleg.fl_loading_cabinet_evidence", "baiyue_firstleg.fl_loading_completion_checkpoint", "baiyue_firstleg.fl_loading_completion_command", "baiyue_firstleg.fl_loading_operation", "baiyue_firstleg.fl_loading_pallet_label", "baiyue_firstleg.fl_loading_pick_assignment", "baiyue_firstleg.fl_loading_pick_item", "baiyue_firstleg.fl_loading_pick_item_assignment", "baiyue_firstleg.fl_loading_pick_operation", "baiyue_firstleg.fl_loading_pick_review", "baiyue_firstleg.fl_loading_pick_task", "baiyue_firstleg.fl_loading_plan", "baiyue_firstleg.fl_loading_plan_item", "baiyue_firstleg.fl_measure_review_record", "baiyue_firstleg.fl_mojia_measurement_receipt", "baiyue_firstleg.fl_ocean_booking", "baiyue_firstleg.fl_ocean_booking_container_allocation", "baiyue_firstleg.fl_ocean_booking_container_requirement", "baiyue_firstleg.fl_ocean_booking_document", "baiyue_firstleg.fl_ocean_booking_operation", "baiyue_firstleg.fl_ocean_booking_party", "baiyue_firstleg.fl_order_declaration_event", "baiyue_firstleg.fl_order_declaration_snapshot", "baiyue_firstleg.fl_outbound_dispatch", "baiyue_firstleg.fl_outbound_dispatch_operation", "baiyue_firstleg.fl_port_schedule", "baiyue_firstleg.fl_port_schedule_operation", "baiyue_firstleg.fl_preload_loading_plan_link", "baiyue_firstleg.fl_preload_plan", "baiyue_firstleg.fl_sailing_assignment", "baiyue_firstleg.fl_sailing_booking_link", "baiyue_firstleg.fl_sailing_inbound_volume_forecast", "baiyue_firstleg.fl_sailing_receipt_batch_fact", "baiyue_firstleg.fl_split_operation", "baiyue_firstleg.fl_terminal_drayage", "baiyue_firstleg.fl_terminal_drayage_mail", "baiyue_firstleg.fl_terminal_drayage_operation", "baiyue_firstleg.fl_truck_appointment", "baiyue_firstleg.fl_truck_appointment_attachment", "baiyue_firstleg.fl_truck_appointment_operation", "baiyue_lastlag_warehouse.wh_pallet_batch", "baiyue_lastlag_warehouse.wh_pallet_batch_item", "baiyue_lastlag_warehouse.wh_pallet_business_binding", "baiyue_lastlag_warehouse.wh_pallet_operation", "baiyue_lastlag_warehouse.wh_resource_lock", "baiyue_lastleg.ll_appointment_cargo_verification", "baiyue_lastleg.ll_appointment_followup", "baiyue_lastleg.ll_appointment_impact", "baiyue_lastleg.ll_appointment_work", "baiyue_lastleg.ll_appointment_work_commitment", "baiyue_lastleg.ll_cargo_discard_application", "baiyue_lastleg.ll_cargo_discard_carton", "baiyue_lastleg.ll_cargo_discard_item", "baiyue_lastleg.ll_cargo_discard_photo", "baiyue_lastleg.ll_container_arrival_time_operation", "baiyue_lastleg.ll_container_loading_evidence", "baiyue_lastleg.ll_container_plan_conversion_command", "baiyue_lastleg.ll_container_shipping_gate", "baiyue_lastleg.ll_customer_visit", "baiyue_lastleg.ll_delivery_document_revision", "baiyue_lastleg.ll_delivery_facts_changed", "baiyue_lastleg.ll_delivery_operation", "baiyue_lastleg.ll_delivery_order", "baiyue_lastleg.ll_destuff_pallet_cost", "baiyue_lastleg.ll_destuff_pallet_cost_allocation", "baiyue_lastleg.ll_dispatch_appointment_allocation", "baiyue_lastleg.ll_dispatch_command", "baiyue_lastleg.ll_dispatch_delivery_arrangement", "baiyue_lastleg.ll_dispatch_draft", "baiyue_lastleg.ll_dispatch_draft_command", "baiyue_lastleg.ll_dispatch_draft_container", "baiyue_lastleg.ll_dispatch_item", "baiyue_lastleg.ll_dispatch_item_source", "baiyue_lastleg.ll_dispatch_order", "baiyue_lastleg.ll_dispatch_pallet_lock", "baiyue_lastleg.ll_dispatch_pda_operation", "baiyue_lastleg.ll_dispatch_pda_pick", "baiyue_lastleg.ll_dispatch_pda_pick_order", "baiyue_lastleg.ll_dispatch_pda_task", "baiyue_lastleg.ll_dispatch_physical_pallet_lock", "baiyue_lastleg.ll_dispatch_transport_command", "baiyue_lastleg.ll_dispatch_transport_create", "baiyue_lastleg.ll_dispatch_truck_task", "baiyue_lastleg.ll_dropship_carton", "baiyue_lastleg.ll_dropship_carton_ledger", "baiyue_lastleg.ll_dropship_carton_sku", "baiyue_lastleg.ll_dropship_order_profile", "baiyue_lastleg.ll_dropship_sku_inventory", "baiyue_lastleg.ll_event_conflict", "baiyue_lastleg.ll_event_inbox", "baiyue_lastleg.ll_event_outbox", "baiyue_lastleg.ll_exception_order", "baiyue_lastleg.ll_exception_order_command", "baiyue_lastleg.ll_exception_return_item", "baiyue_lastleg.ll_fba_appointment_command", "baiyue_lastleg.ll_fba_receiving_agreement", "baiyue_lastleg.ll_fba_receiving_change", "baiyue_lastleg.ll_fba_receiving_member", "baiyue_lastleg.ll_fba_receiving_plan", "baiyue_lastleg.ll_fba_receiving_revision", "baiyue_lastleg.ll_finance_fee_command", "baiyue_lastleg.ll_finance_fee_source", "baiyue_lastleg.ll_fleet_capacity_offer", "baiyue_lastleg.ll_fleet_capacity_offer_command", "baiyue_lastleg.ll_fleet_external_booking", "baiyue_lastleg.ll_fleet_finance_source", "baiyue_lastleg.ll_fleet_owned_business_command", "baiyue_lastleg.ll_fleet_owned_business_ownership", "baiyue_lastleg.ll_fleet_owned_business_record", "baiyue_lastleg.ll_fleet_pickup_command", "baiyue_lastleg.ll_fleet_pickup_plan", "baiyue_lastleg.ll_fleet_pickup_task", "baiyue_lastleg.ll_fleet_pickup_upload", "baiyue_lastleg.ll_fleet_pool_order_link", "baiyue_lastleg.ll_fleet_resource_assignment", "baiyue_lastleg.ll_fleet_trip", "baiyue_lastleg.ll_fleet_trip_cost", "baiyue_lastleg.ll_fleet_trip_dispatch", "baiyue_lastleg.ll_fleet_trip_handover", "baiyue_lastleg.ll_fleet_trip_operations_record", "baiyue_lastleg.ll_inbound_fba_appointment", "baiyue_lastleg.ll_inbound_fba_appointment_item", "baiyue_lastleg.ll_inbound_order", "baiyue_lastleg.ll_inbound_order_item", "baiyue_lastleg.ll_inbound_pallet_merge", "baiyue_lastleg.ll_inbound_pda_operation", "baiyue_lastleg.ll_inbound_pda_task", "baiyue_lastleg.ll_inbound_plan", "baiyue_lastleg.ll_inbound_plan_carton", "baiyue_lastleg.ll_inbound_plan_line", "baiyue_lastleg.ll_inbound_plan_pallet", "baiyue_lastleg.ll_inbound_plan_pallet_allocation", "baiyue_lastleg.ll_inbound_stock_receipt", "baiyue_lastleg.ll_inventory_balance", "baiyue_lastleg.ll_inventory_ledger", "baiyue_lastleg.ll_inventory_operation", "baiyue_lastleg.ll_inventory_position", "baiyue_lastleg.ll_loading_event_inbox", "baiyue_lastleg.ll_local_looseboard_operation", "baiyue_lastleg.ll_local_looseboard_order", "baiyue_lastleg.ll_order", "baiyue_lastleg.ll_order_command_record", "baiyue_lastleg.ll_order_detail", "baiyue_lastleg.ll_order_fee", "baiyue_lastleg.ll_order_manual_node", "baiyue_lastleg.ll_order_source_pallet", "baiyue_lastleg.ll_outbound_order", "baiyue_lastleg.ll_outbound_pallet_item", "baiyue_lastleg.ll_outbound_pda_pick", "baiyue_lastleg.ll_outbound_pda_task", "baiyue_lastleg.ll_overseas_procurement_fee", "baiyue_lastleg.ll_overseas_procurement_file", "baiyue_lastleg.ll_overseas_procurement_order", "baiyue_lastleg.ll_pda_inventory_move", "baiyue_lastleg.ll_pda_pallet_operation", "baiyue_lastleg.ll_pda_stocktake_action", "baiyue_lastleg.ll_pda_stocktake_item", "baiyue_lastleg.ll_pda_stocktake_task", "baiyue_lastleg.ll_physical_pallet_guard", "baiyue_lastleg.ll_procurement_budget_authorization", "baiyue_lastleg.ll_procurement_carton", "baiyue_lastleg.ll_procurement_carton_source", "baiyue_lastleg.ll_procurement_closure", "baiyue_lastleg.ll_procurement_closure_item", "baiyue_lastleg.ll_procurement_command", "baiyue_lastleg.ll_procurement_control_note", "baiyue_lastleg.ll_procurement_disposition", "baiyue_lastleg.ll_procurement_estimate_review", "baiyue_lastleg.ll_procurement_fee_correction", "baiyue_lastleg.ll_procurement_fee_correction_item", "baiyue_lastleg.ll_procurement_flow", "baiyue_lastleg.ll_procurement_label_item", "baiyue_lastleg.ll_procurement_label_set", "baiyue_lastleg.ll_procurement_manifest", "baiyue_lastleg.ll_procurement_receipt", "baiyue_lastleg.ll_procurement_repack", "baiyue_lastleg.ll_procurement_shipment", "baiyue_lastleg.ll_procurement_shipment_item", "baiyue_lastleg.ll_procurement_wallet_attempt", "baiyue_lastleg.ll_receiving_container_operation", "baiyue_lastleg.ll_receiving_container_session", "baiyue_lastleg.ll_receiving_fba_pallet_count", "baiyue_lastleg.ll_receiving_sku_receipt", "baiyue_lastleg.ll_receiving_warehouse_operation", "baiyue_lastleg.ll_relabel_application", "baiyue_lastleg.ll_relabel_item", "baiyue_lastleg.ll_relabel_pda_operation", "baiyue_lastleg.ll_relabel_pda_task", "baiyue_lastleg.ll_relabel_pda_unit_fact", "baiyue_lastleg.ll_return_carton_count_session", "baiyue_lastleg.ll_return_carton_stock_receipt", "baiyue_lastleg.ll_return_inventory_balance", "baiyue_lastleg.ll_return_inventory_carton", "baiyue_lastleg.ll_return_inventory_carton_item", "baiyue_lastleg.ll_return_inventory_operation", "baiyue_lastleg.ll_return_inventory_outbound_movement", "baiyue_lastleg.ll_return_order", "baiyue_lastleg.ll_return_order_item", "baiyue_lastleg.ll_return_packing_plan", "baiyue_lastleg.ll_return_packing_trace", "baiyue_lastleg.ll_return_receipt", "baiyue_lastleg.ll_return_receipt_batch", "baiyue_lastleg.ll_return_receipt_item", "baiyue_lastleg.ll_return_sku_conversion", "baiyue_lastleg.ll_return_stock_receipt", "baiyue_lastleg.ll_us_truck_order", "baiyue_lastleg.ll_us_truck_order_operation", "baiyue_lastleg.ll_us_truck_order_pallet", "baiyue_lastleg.ll_wallet_event_inbox", "baiyue_lastleg.ll_warehouse_transfer_carton", "baiyue_lastleg.ll_warehouse_transfer_inventory_allocation", "baiyue_lastleg.ll_warehouse_transfer_item", "baiyue_lastleg.ll_warehouse_transfer_measurement_photo", "baiyue_lastleg.ll_warehouse_transfer_order", "baiyue_lastleg.ll_warehouse_transfer_pallet", "baiyue_lastleg.ll_warehouse_transfer_pallet_item", "baiyue_lastleg.ll_warehouse_transfer_receipt", "baiyue_lastleg.ll_warehouse_transfer_receipt_command", "baiyue_lastleg.ll_warehouse_transfer_relabel_binding", "baiyue_lastleg.ll_warehouse_transfer_source_order", "baiyue_order.ord_idempotency_record", "baiyue_order.ord_order", "baiyue_order.ord_order_cargo", "baiyue_order.ord_order_fulfillment_split", "baiyue_order.ord_order_internal_note", "baiyue_order.ord_order_party", "baiyue_order.ord_outbox_event", "baiyue_warehouse.wh_domestic_container_idempotency", "baiyue_warehouse.wh_domestic_container_inventory", "baiyue_warehouse.wh_domestic_container_order", "baiyue_warehouse.wh_domestic_container_transaction", "baiyue_warehouse.wh_location_block", "baiyue_warehouse.wh_location_block_slot", "baiyue_warehouse.wh_location_occupancy", "baiyue_warehouse.wh_location_reservation", "baiyue_warehouse.wh_pallet_location_release_operation", "baiyue_warehouse.wh_pallet_location_settlement_operation", "baiyue_warehouse.wh_pallet_location_transfer_operation" ] }, { "action": "KEEP", "reason": "保留主档、报价、计费规则及配置历史。", "tables": [ "baiyue_finance.fin_customer_settlement_profile", "baiyue_finance.fin_subject", "baiyue_firstleg.fl_carrier_fba_rate", "baiyue_firstleg.fl_customer_charge_rule", "baiyue_firstleg.fl_customer_dimension_config", "baiyue_firstleg.fl_fee_item", "baiyue_firstleg.fl_price_book_channel", "baiyue_firstleg.fl_price_book_version", "baiyue_firstleg.fl_price_channel_catalog", "baiyue_firstleg.fl_price_origin_alias", "baiyue_firstleg.fl_price_warehouse_mapping", "baiyue_firstleg.fl_sailing_channel", "baiyue_firstleg.fl_sailing_template", "baiyue_lastleg.ll_fleet_driver", "baiyue_lastleg.ll_fleet_driver_history", "baiyue_lastleg.ll_fleet_quote", "baiyue_lastleg.ll_fleet_quote_history", "baiyue_lastleg.ll_monthly_exchange_rate", "baiyue_lastleg.ll_monthly_exchange_rate_history", "baiyue_lastleg.ll_overseas_quote", "baiyue_lastleg.ll_overseas_quote_fee", "baiyue_lastleg.ll_overseas_quote_transit_price", "baiyue_order.ord_customer_address", "baiyue_warehouse.wh_express_company", "baiyue_warehouse.wh_overseas_storage_fee_rule", "baiyue_warehouse.wh_overseas_storage_fee_tier", "baiyue_warehouse.wh_pallet", "baiyue_warehouse.wh_partner", "baiyue_warehouse.wh_partner_type", "baiyue_warehouse.wh_service_capability", "baiyue_warehouse.wh_supplier", "baiyue_warehouse.wh_supplier_carrier", "baiyue_warehouse.wh_warehouse", "baiyue_warehouse.wh_warehouse_address" ] }, { "action": "KEEP", "reason": "保留编号序列,避免既有标签、附件及审计引用与新单重号。", "tables": [ "baiyue_finance.fin_document_sequence", "baiyue_firstleg.fl_document_sequence", "baiyue_lastleg.ll_dispatch_daily_sequence", "baiyue_lastleg.ll_document_sequence", "baiyue_order.ord_document_sequence", "baiyue_order.ord_inbound_code_daily_sequence", "baiyue_warehouse.wh_document_sequence" ] }, { "action": "RESET_REVIEW", "reason": "保留账户、币种、授信额度及到期日;实际余额、冻结、已用授信、冻结授信归零;可用余额按执行日有效授信重新计算,不能固定为零;核对服务时区及版本更新。", "tables": [ "baiyue_finance.fin_wallet_account" ] }, { "action": "CLEAR_CANDIDATE", "reason": "已确认订单自身的状态流转、拣货、派送等作业历史随业务单据清除;独立审计另行保留。执行仍须处理外键及不可删除触发器。", "tables": [ "baiyue_firstleg.fl_assignment_history", "baiyue_firstleg.fl_carrier_schedule_query_history", "baiyue_firstleg.fl_coload_group_history", "baiyue_firstleg.fl_container_exception_history", "baiyue_firstleg.fl_container_transport_history", "baiyue_firstleg.fl_customs_completion_action_history", "baiyue_firstleg.fl_customs_container_history", "baiyue_firstleg.fl_inbound_split_history", "baiyue_firstleg.fl_inbound_status_history", "baiyue_firstleg.fl_loading_pick_history", "baiyue_firstleg.fl_loading_plan_history", "baiyue_firstleg.fl_ocean_booking_status_history", "baiyue_firstleg.fl_outbound_dispatch_history", "baiyue_firstleg.fl_port_schedule_history", "baiyue_firstleg.fl_terminal_drayage_history", "baiyue_firstleg.fl_truck_appointment_history", "baiyue_lastleg.ll_appointment_impact_history", "baiyue_lastleg.ll_appointment_work_history", "baiyue_lastleg.ll_cargo_discard_status_history", "baiyue_lastleg.ll_dispatch_history", "baiyue_lastleg.ll_fleet_owned_business_history", "baiyue_lastleg.ll_fleet_pickup_history", "baiyue_lastleg.ll_fleet_trip_cost_history", "baiyue_lastleg.ll_fleet_trip_history", "baiyue_lastleg.ll_loading_order_status_history", "baiyue_lastleg.ll_local_looseboard_history", "baiyue_lastleg.ll_order_hold_history", "baiyue_lastleg.ll_order_manual_node_history", "baiyue_lastleg.ll_order_operation_log", "baiyue_lastleg.ll_order_status_history", "baiyue_lastleg.ll_overseas_procurement_status_history", "baiyue_lastleg.ll_pda_operation_history", "baiyue_lastleg.ll_relabel_pda_history", "baiyue_lastleg.ll_relabel_status_history", "baiyue_lastleg.ll_us_truck_order_status_history", "baiyue_order.ord_order_status_history" ] }, { "action": "KEEP", "reason": "保留人工维护的船期计划及其计划变更历史;订单归班、实测、预报和订舱关联事实在各自业务表清理,不重置计划本身。", "tables": [ "baiyue_firstleg.fl_sailing", "baiyue_firstleg.fl_sailing_history" ] }, { "action": "RESET_REVIEW", "reason": "保留真实/虚拟库位及停用状态;现行实现真实库位使用 IDLE/OCCUPIED,虚拟库位保持 ACTIVE,不能依据基线旧注释统一置 ACTIVE。", "tables": [ "baiyue_lastlag_warehouse.wh_location" ] }, { "action": "RESET_REVIEW", "reason": "保留实物托盘和允许保留的库位关联,核对业务绑定、FBA归属与占用的释放条件;已废弃或逻辑删除托盘不自动复活。", "tables": [ "baiyue_lastlag_warehouse.wh_pallet" ] }, { "action": "RESET_REVIEW", "reason": "保留固定协调锁初始行,重置同步游标、初始化标记和本次业务派生版本;须按当前服务及实际种子核对,不能直接清空导致后台协调失效。", "tables": [ "baiyue_lastleg.ll_appointment_work_guard" ] }, { "action": "KEEP", "reason": "保留车辆保养、维修等档案及其版本历史;独立公司费用及费用提交来源随本次财务业务清理,处理前核对重新提交行为。", "tables": [ "baiyue_lastleg.ll_fleet_vehicle_record", "baiyue_lastleg.ll_fleet_vehicle_record_history" ] }, { "action": "KEEP", "reason": "按已确认口径保留全部自营采集事实、版本、维度、任务及发布指针。", "tables": [ "baiyue_lastleg.ll_selfop_inventory_daily", "baiyue_lastleg.ll_selfop_inventory_day_version", "baiyue_lastleg.ll_selfop_inventory_flow", "baiyue_lastleg.ll_selfop_inventory_snapshot", "baiyue_lastleg.ll_selfop_outbound_discovery_scope", "baiyue_lastleg.ll_selfop_outbound_item", "baiyue_lastleg.ll_selfop_outbound_order", "baiyue_lastleg.ll_selfop_owner", "baiyue_lastleg.ll_selfop_product", "baiyue_lastleg.ll_selfop_sku_daily_sales", "baiyue_lastleg.ll_selfop_sku_profile", "baiyue_lastleg.ll_selfop_sync_run", "baiyue_lastleg.ll_selfop_sync_scope", "baiyue_lastleg.ll_selfop_sync_stage", "baiyue_lastleg.ll_selfop_sync_task", "baiyue_lastleg.ll_selfop_warehouse_daily_sales" ] }, { "action": "RESET_REVIEW", "reason": "保留车辆资料、里程和维护/停用状态;核对实际状态机后仅释放业务车次造成的派出状态,不按 ownership 归属字段判断占用。", "tables": [ "baiyue_lastleg.ll_vehicle" ] }, { "action": "RESET_REVIEW", "reason": "保留库位资料、停用和逻辑删除状态;核对当前实现后只释放本轮业务造成的 RESERVED/OCCUPIED,占用/预占/库位块同步清理。", "tables": [ "baiyue_warehouse.wh_location" ] }, { "action": "KEEP", "reason": "独立第三方调用留档保留,不作为本次业务重置的删除对象。", "tables": [ "baiyue_firstleg.fl_third_party_call_log" ] }, { "action": "KEEP", "reason": "站内消息与通知模板保留;执行前核查排队通知是否引用本次待清业务,不按测试样本名称或消息正文批量删除。", "tables": [ "baiyue_iam.iam_notification_event_inbox", "baiyue_iam.iam_notification_inbox", "baiyue_iam.iam_notification_recipient", "baiyue_iam.iam_notification_task" ] } ] }