IF NOT EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME=N'EST_PROD_SUPRIMENTO_ENCOMENDA_ENTREGA_LOJA')
 BEGIN
  SET ANSI_NULLS ON
  SET QUOTED_IDENTIFIER ON
  CREATE TABLE [dbo].[EST_PROD_SUPRIMENTO_ENCOMENDA_ENTREGA_LOJA](
	[CD_EMP] [int] NOT NULL,
	[CD_USU] [int] NOT NULL,
	[CD_CTR] [bigint] NOT NULL
    CONSTRAINT [PK_EST_PROD_SUPRIMENTO_ENCOMENDA_ENTREGA_LOJA] PRIMARY KEY CLUSTERED 
	(	[CD_EMP] ASC,
		[CD_USU] ASC,
		[CD_CTR] ASC
	) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
	) ON [PRIMARY]
	
	CREATE NONCLUSTERED INDEX IX_EST_PROD_SUPRIMENTO_ENCOMENDA_ENTREGA_LOJA_EMP_USU ON EST_PROD_SUPRIMENTO_ENCOMENDA_ENTREGA_LOJA(CD_EMP, CD_USU);
 END