IF OBJECT_ID('GLB_EMAIL_ENV_PEND') IS NULL
	BEGIN 
		CREATE TABLE [dbo].[GLB_EMAIL_ENV_PEND](
			[CD_CTR] [int],
			[DT_CAD] [DATETIME],
		 CONSTRAINT [PK_GLB_EMAIL_ENV_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].[GLB_EMAIL_ENV_PEND]  WITH CHECK ADD  CONSTRAINT [FK_GLB_EMAIL_ENV_PEND_GLB_EMAIL_ENV] FOREIGN KEY([CD_CTR])
		REFERENCES [dbo].[GLB_EMAIL_ENV] ([CD_CTR])
		ON UPDATE CASCADE
		ON DELETE CASCADE
		
		ALTER TABLE [dbo].[GLB_EMAIL_ENV_PEND] CHECK CONSTRAINT [FK_GLB_EMAIL_ENV_PEND_GLB_EMAIL_ENV]
		
	END