20260928171336
This commit is contained in:
1 parent
f22e67fc85
commit
cbd49ded6f
34 files changed
+738
-7842
No files matched your search
@@ -90,6 +90,11 @@ create index ix_wf_version_status
|
||||
on dbo.wf_version (b_definition_id, b_status, b_version_no);
|
||||
GO
|
||||
|
||||
create unique index ux_wf_version_draft
|
||||
on dbo.wf_version (b_definition_id)
|
||||
where b_status = 'draft';
|
||||
GO
|
||||
|
||||
-- 说明属性(MS_Description):SSMS 表设计器与列属性说明的来源
|
||||
exec sys.sp_addextendedproperty @name=N'MS_Description', @value=N'流程版本表(draft/published/retired,已发布版本不可原地修改)',
|
||||
@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'wf_version';
|
||||
@@ -152,6 +157,11 @@ create index ix_wf_binding_select
|
||||
on dbo.wf_binding (b_module_id, b_event, b_canuse, b_priority, b_effective_from, b_effective_to);
|
||||
GO
|
||||
|
||||
create unique index ux_wf_binding_active_priority
|
||||
on dbo.wf_binding (b_module_id, b_event, b_priority)
|
||||
where b_canuse = 1;
|
||||
GO
|
||||
|
||||
-- 说明属性(MS_Description):SSMS 表设计器与列属性说明的来源
|
||||
exec sys.sp_addextendedproperty @name=N'MS_Description', @value=N'流程绑定表(模块 + 业务事件 + 条件 → 流程版本)',
|
||||
@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'wf_binding';
|
||||
@@ -392,6 +402,11 @@ create index ix_wf_instance_version
|
||||
on dbo.wf_instance (b_version_id, b_started_at, b_id);
|
||||
GO
|
||||
|
||||
create unique index ux_wf_instance_idempotency
|
||||
on dbo.wf_instance (b_module_id, b_business_id, b_idempotency_key)
|
||||
where b_idempotency_key is not null;
|
||||
GO
|
||||
|
||||
-- 说明属性(MS_Description):SSMS 表设计器与列属性说明的来源
|
||||
exec sys.sp_addextendedproperty @name=N'MS_Description', @value=N'流程实例表(某张业务单据某次提交的运行流程)',
|
||||
@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'wf_instance';
|
||||
@@ -601,6 +616,11 @@ create index ix_wf_action_operator
|
||||
on dbo.wf_action (b_operator_id, b_occurdatetime, b_id);
|
||||
GO
|
||||
|
||||
create unique index ux_wf_action_request
|
||||
on dbo.wf_action (b_request_id)
|
||||
where b_request_id is not null;
|
||||
GO
|
||||
|
||||
-- 说明属性(MS_Description):SSMS 表设计器与列属性说明的来源
|
||||
exec sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审批动作表(只追加,不更新历史动作)',
|
||||
@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'wf_action';
|
||||
|
||||
Reference in new issue
Block a user