feat(wcs): persist transport orders and workflows

This commit is contained in:
zgw
2026-08-10 15:24:11 +08:00
parent f4ae3df382
commit 4696cdb950
14 changed files with 886 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
SET NOCOUNT ON;
SELECT name AS table_name
FROM sys.tables
WHERE name IN (
'wcs_transport_order',
'wcs_workflow_instance',
'wcs_task_step',
'wcs_task_dependency',
'wcs_domain_event'
)
ORDER BY name;
SELECT i.name AS unique_constraint_name
FROM sys.indexes i
JOIN sys.tables t ON t.object_id = i.object_id
WHERE t.name = 'wcs_transport_order'
AND i.name = 'uk_wcs_transport_order_external_request'
AND i.is_unique = 1;