diff --git a/src/aspnet-core/ICS.Script/MES基础版索引.sql b/src/aspnet-core/ICS.Script/MES基础版索引.sql index d3517029..4f4b19d6 100644 --- a/src/aspnet-core/ICS.Script/MES基础版索引.sql +++ b/src/aspnet-core/ICS.Script/MES基础版索引.sql @@ -500,3 +500,25 @@ GO COMMIT; GO + + +CREATE INDEX [IX_IcsItemRoute2Op_ItemCode] ON [IcsItemRoute2Op] ([ItemCode]); +GO + +CREATE INDEX [IX_IcsItemRoute2Op_OpCode] ON [IcsItemRoute2Op] ([OpCode]); +GO + +CREATE INDEX [IX_IcsItemRoute2Op_RouteCode] ON [IcsItemRoute2Op] ([RouteCode]); +GO + +--CREATE INDEX [IX_IcsItemRoute2Op_TenantId] ON [IcsItemRoute2Op] ([TenantId]); +--GO + +CREATE INDEX [IX_IcsItem2Route_ItemCode] ON [IcsItem2Route] ([ItemCode]); +GO + +CREATE INDEX [IX_IcsItem2Route_RouteCode] ON [IcsItem2Route] ([RouteCode]); +GO + +--CREATE INDEX [IX_IcsItem2Route_TenantId] ON [IcsItem2Route] ([TenantId]); +--GO \ No newline at end of file