feat(wcs): coordinate and persist traffic decisions

This commit is contained in:
zgw
2026-08-11 09:54:26 +08:00
parent 8b3713d182
commit 74f2de59cd
17 changed files with 1369 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
SET NOCOUNT ON;
SELECT name AS table_name
FROM sys.tables
WHERE name IN (
'wcs_warehouse',
'wcs_floor',
'wcs_topology_version',
'wcs_topology_node',
'wcs_topology_edge',
'wcs_traffic_zone',
'wcs_resource_definition',
'wcs_device',
'wcs_device_capability',
'wcs_device_port',
'wcs_charger',
'wcs_vehicle_assignment',
'wcs_route_plan',
'wcs_resource_state',
'wcs_resource_reservation',
'wcs_traffic_decision_event'
)
ORDER BY name;
SELECT c.name AS constraint_name
FROM sys.check_constraints c
WHERE c.name IN (
'ck_wcs_resource_definition_capacity',
'ck_wcs_resource_state_counts',
'ck_wcs_resource_reservation_fencing'
)
ORDER BY c.name;