﻿CREATE TABLE [dbo].[OrgHierarchy]
(
	[WorkCenterCode] VARCHAR(12) NOT NULL, 
    [BranchCode] VARCHAR(12) NOT NULL, 
	[ProfitCenterCode] VARCHAR(12) NOT NULL, 
    [LastUpdateDT] DATETIME NOT NULL,
	CONSTRAINT [PK_OrgHierarchy] PRIMARY KEY CLUSTERED([WorkCenterCode], [BranchCode])
)

GO

CREATE INDEX [IX_OrgHierarchy_ProfitCenterCode] ON [dbo].[OrgHierarchy] ([ProfitCenterCode]) INCLUDE([WorkCenterCode])

GO