IF OBJECT_ID('EST_ALCADA_CP_PED_PEND') IS NULL	
	BEGIN 

		CREATE TABLE [dbo].[EST_ALCADA_CP_PED_PEND](
			[CD_CTR] [int] NOT NULL,
			[DT_CAD] [datetime] NULL,
		 CONSTRAINT [PK_EST_ALCADA_CP_PED_PEND] PRIMARY KEY CLUSTERED 
		(
			[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]

		

		ALTER TABLE [dbo].[EST_ALCADA_CP_PED_PEND]  WITH CHECK ADD  CONSTRAINT [FK_EST_ALCADA_CP_PED_PEND_EST_ALCADA_CP_PED] FOREIGN KEY([CD_CTR])
		REFERENCES [dbo].[EST_ALCADA_CP_PED] ([CD_CTR])
		ON UPDATE CASCADE
		ON DELETE CASCADE
		

		ALTER TABLE [dbo].[EST_ALCADA_CP_PED_PEND] CHECK CONSTRAINT [FK_EST_ALCADA_CP_PED_PEND_EST_ALCADA_CP_PED]
		


	END