培训考试积分

This commit is contained in:
2026-11-20 15:32:57 +08:00
parent 02a1a827f1
commit 6baa4ed8b5
16 changed files with 552 additions and 535 deletions
@@ -0,0 +1,25 @@
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
IF NOT EXISTS(SELECT 1 FROM sys.indexes WHERE object_id = OBJECT_ID('dbo.ScoreFlowLog') AND name = 'IX_ScoreFlowLog_DataSourceId')
BEGIN
CREATE NONCLUSTERED INDEX [IX_ScoreFlowLog_DataSourceId] ON [dbo].[ScoreFlowLog]([DataSourceId] ASC)
INCLUDE([IdentityCard], [Year])
END
GO
IF NOT EXISTS(SELECT 1 FROM sys.indexes WHERE object_id = OBJECT_ID('dbo.ScoreFlowLog') AND name = 'IX_ScoreFlowLog_IdentityCard_Year_CompileDate')
BEGIN
CREATE NONCLUSTERED INDEX [IX_ScoreFlowLog_IdentityCard_Year_CompileDate] ON [dbo].[ScoreFlowLog]([IdentityCard] ASC, [Year] ASC, [CompileDate] DESC)
INCLUDE([CurrentScore], [Type])
END
GO
IF NOT EXISTS(SELECT 1 FROM sys.indexes WHERE object_id = OBJECT_ID('dbo.Sys_Const') AND name = 'UX_Sys_Const_GroupId_ConstValue_PostType')
BEGIN
CREATE UNIQUE INDEX [UX_Sys_Const_GroupId_ConstValue_PostType] ON [dbo].[Sys_Const]([GroupId] ASC, [ConstValue] ASC)
WHERE [GroupId] = 'PostType'
END
GO