Files
baiyue-firstleg/output/local-schema-repair/initial-plan.json
T
2026-10-20 11:33:20 +08:00

267 lines
11 KiB
JSON

{
"baselineTables": 218,
"actualTables": 170,
"addedTables": [
"ll_dispatch_draft_command",
"ll_dispatch_history",
"ll_return_carton_stock_receipt",
"ll_fba_receiving_agreement",
"ll_fba_receiving_member",
"ll_fba_receiving_change",
"ll_fba_receiving_revision",
"ll_fba_receiving_plan",
"ll_appointment_cargo_verification",
"ll_fba_appointment_command",
"ll_appointment_followup",
"ll_dispatch_command",
"ll_dispatch_delivery_arrangement",
"ll_delivery_facts_changed",
"event_delivery_retry_audit",
"ll_procurement_wallet_attempt",
"ll_procurement_flow",
"ll_procurement_command",
"ll_procurement_budget_authorization",
"ll_procurement_receipt",
"ll_procurement_disposition",
"ll_procurement_manifest",
"ll_procurement_carton",
"ll_procurement_carton_source",
"ll_procurement_shipment",
"ll_procurement_shipment_item",
"ll_procurement_label_set",
"ll_procurement_label_item",
"ll_procurement_estimate_review",
"ll_procurement_repack",
"ll_procurement_fee_correction",
"ll_procurement_fee_correction_item",
"ll_procurement_control_note",
"ll_procurement_closure",
"ll_procurement_closure_item",
"ll_selfop_outbound_discovery_scope",
"ll_selfop_sync_scope",
"ll_selfop_sync_task",
"ll_selfop_sync_run",
"ll_selfop_sync_stage",
"ll_selfop_outbound_order",
"ll_selfop_outbound_item",
"ll_selfop_inventory_snapshot",
"ll_selfop_sku_daily_sales",
"ll_selfop_warehouse_daily_sales",
"ll_selfop_sku_profile",
"ll_appointment_impact",
"ll_appointment_impact_history",
"ll_selfop_owner",
"ll_selfop_product",
"ll_selfop_inventory_flow",
"ll_selfop_inventory_day_version",
"ll_selfop_inventory_daily"
],
"addedColumns": [
"ll_cargo_discard_carton.source_type",
"ll_dispatch_draft.warehouse_id",
"ll_dispatch_draft.record_version",
"ll_dispatch_draft.sources_json",
"ll_dispatch_draft_container.source_keys_json",
"ll_dispatch_item.customer_name",
"ll_dispatch_item.source_key",
"ll_dispatch_item.source_version",
"ll_dispatch_item.source_snapshot_json",
"ll_dispatch_order.trip_id",
"ll_dispatch_order.overseas_warehouse_code",
"ll_dispatch_order.stage",
"ll_dispatch_order.record_version",
"ll_dispatch_order.cargo_revision",
"ll_dispatch_order.cargo_hash",
"ll_dispatch_order.review_state",
"ll_dispatch_order.review_round",
"ll_dispatch_order.review_basis_hash",
"ll_dispatch_order.dispatch_review_json",
"ll_dispatch_order.loading_review_json",
"ll_dispatch_order.resources_json",
"ll_dispatch_order.planned_departure_at",
"ll_dispatch_order.loading_completed_at",
"ll_dispatch_order.loading_completion_hash",
"ll_dispatch_order.loading_confirmation_json",
"ll_dispatch_order.arrangement_key",
"ll_dispatch_order.arrangement_business_hash",
"ll_dispatch_order.departed_at",
"ll_dispatch_order.delivery_completed_at",
"ll_dispatch_order.remark",
"ll_dispatch_pallet_lock.active_warehouse_pallet_id",
"ll_dropship_carton.product_quantity",
"ll_dropship_order_profile.manifest_version",
"ll_dropship_order_profile.manifest_package_count",
"ll_dropship_order_profile.manifest_fragment_count",
"ll_dropship_order_profile.manifest_hash",
"ll_exception_order.return_context_json",
"ll_exception_return_item.return_carton_id",
"ll_exception_return_item.return_carton_mark",
"ll_exception_return_item.received_packages",
"ll_inbound_fba_appointment.confirmation_no",
"ll_inbound_fba_appointment.planned_date",
"ll_inbound_fba_appointment.planned_at",
"ll_inbound_fba_appointment.planned_end_at",
"ll_inbound_fba_appointment.appointment_start_utc",
"ll_inbound_fba_appointment.appointment_end_utc",
"ll_inbound_fba_appointment.timezone",
"ll_inbound_fba_appointment.origin_warehouse_id",
"ll_inbound_fba_appointment.replacement_keys_json",
"ll_inbound_fba_appointment.repartition_reason",
"ll_inbound_fba_appointment_item.cargo_verification_version",
"ll_inbound_fba_appointment_item.shipment_references_json",
"ll_local_looseboard_order.product_name",
"ll_local_looseboard_order.origin_contact_name",
"ll_local_looseboard_order.destination_contact_name",
"ll_local_looseboard_order.pickup_at",
"ll_outbound_pallet_item.dispatch_item_id",
"ll_outbound_pallet_item.source_attribution_id",
"ll_outbound_pallet_item.source_order_id",
"ll_outbound_pallet_item.source_inventory_position_id",
"ll_outbound_pallet_item.source_return_receipt_id",
"ll_outbound_pallet_item.source_return_carton_id",
"ll_overseas_procurement_fee.purpose",
"ll_overseas_procurement_fee.confirmation_origin",
"ll_overseas_procurement_fee.fee_version",
"ll_overseas_procurement_fee.active",
"ll_overseas_procurement_fee.determination",
"ll_overseas_procurement_fee.original_currency",
"ll_overseas_procurement_fee.original_amount",
"ll_overseas_procurement_fee.exchange_rate",
"ll_overseas_procurement_fee.exchange_rate_month",
"ll_overseas_procurement_fee.business_date",
"ll_overseas_procurement_fee.wallet_business_id",
"ll_overseas_procurement_fee.wallet_business_no",
"ll_overseas_procurement_fee.wallet_hold_id",
"ll_overseas_procurement_fee.wallet_ledger_id",
"ll_overseas_procurement_fee.settled_command_event_id",
"ll_overseas_procurement_fee.source_fee_id",
"ll_overseas_procurement_fee.parent_fee_id",
"ll_overseas_procurement_fee.request_hash",
"ll_overseas_procurement_status_history.operation_type",
"ll_overseas_procurement_status_history.change_detail",
"ll_receiving_container_session.source_container_booking_id",
"ll_receiving_container_session.container_fact_hash",
"ll_receiving_container_session.overseas_warehouse_code",
"ll_us_truck_order.vehicle_type",
"ll_us_truck_order.origin_contact_name",
"ll_us_truck_order.origin_contact_phone",
"ll_us_truck_order.destination_contact_name",
"ll_us_truck_order.destination_contact_phone",
"ll_us_truck_order.pickup_at",
"ll_us_truck_order.delivery_at"
],
"unsafe": [
{
"table": "ll_dispatch_draft",
"column": "warehouse_id",
"count": 11,
"definition": "warehouse_id BIGINT NOT NULL COMMENT '本草稿唯一起运公共仓库引用'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_dispatch_draft",
"column": "sources_json",
"count": 11,
"definition": "sources_json LONGTEXT NOT NULL COMMENT '服务端核验的真实来源及客户版本快照数组'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_dispatch_draft_container",
"column": "source_keys_json",
"count": 7,
"definition": "source_keys_json LONGTEXT NOT NULL COMMENT '本装车容器已取得本草稿占用的来源键数组'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_dispatch_item",
"column": "source_key",
"count": 60,
"definition": "source_key VARCHAR(255) NOT NULL COMMENT '本条货物稳定权威来源键'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_dispatch_item",
"column": "source_version",
"count": 60,
"definition": "source_version CHAR(64) NOT NULL COMMENT '选货时核对的真实来源版本摘要'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_dispatch_item",
"column": "source_snapshot_json",
"count": 60,
"definition": "source_snapshot_json JSON NOT NULL COMMENT '本条货物不可变来源及关联事实快照'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_dispatch_order",
"column": "trip_id",
"count": 48,
"definition": "trip_id BIGINT NOT NULL COMMENT '本趟唯一车辆资源记录ID'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_dispatch_order",
"column": "cargo_hash",
"count": 48,
"definition": "cargo_hash CHAR(64) NOT NULL COMMENT '当前整车真实货物及来源摘要'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_dropship_carton",
"column": "product_quantity",
"count": 83,
"definition": "product_quantity bigint NOT NULL COMMENT '该箱实收商品件数'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_dropship_order_profile",
"column": "manifest_version",
"count": 17,
"definition": "manifest_version int NOT NULL COMMENT '整托清单版本'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_dropship_order_profile",
"column": "manifest_package_count",
"count": 17,
"definition": "manifest_package_count int NOT NULL COMMENT '整托总箱数'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_dropship_order_profile",
"column": "manifest_fragment_count",
"count": 17,
"definition": "manifest_fragment_count int NOT NULL COMMENT '整托客户分片总数'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_dropship_order_profile",
"column": "manifest_hash",
"count": 17,
"definition": "manifest_hash char(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '整托完整清单摘要'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_overseas_procurement_status_history",
"column": "operation_type",
"count": 9,
"definition": "operation_type varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '操作类型:CREATE、REVIEW或UPDATE'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_receiving_container_session",
"column": "source_container_booking_id",
"count": 1,
"definition": "source_container_booking_id varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '稳定来源柜预订ID'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
},
{
"table": "ll_receiving_container_session",
"column": "container_fact_hash",
"count": 1,
"definition": "container_fact_hash varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '领取时整柜订单与计划事实摘要'",
"handling": "历史行保留NULL,不伪造业务事实;新写入由应用校验"
}
]
}