/****** Object:  Table [dbo].[EST_NF_ENT_DANFE_PROVISORIO_SUSPENSO]    Script Date: 10/02/2013 15:24:34 ******/
IF  NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EST_NF_ENT_DANFE_PROVISORIO_SUSPENSO]') AND type in (N'U'))
BEGIN
	CREATE TABLE [dbo].[EST_NF_ENT_DANFE_PROVISORIO_SUSPENSO](
		[CD_CTR] [int] NOT NULL,
		[CD_USU] [int] NULL,
		[DT_CAD] [datetime] NULL,
	 CONSTRAINT [PK_EST_NF_ENT_DANFE_PROVISORIO_SUSPENSO] 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_NF_ENT_DANFE_PROVISORIO_SUSPENSO]  WITH CHECK ADD  CONSTRAINT [FK_EST_NF_ENT_DANFE_PROVISORIO_SUSPENSO_EST_NF_ENT_DANFE_PROVISORIO] FOREIGN KEY([CD_CTR])
	REFERENCES [dbo].[EST_NF_ENT_DANFE_PROVISORIO] ([CD_CTR])
	ON UPDATE CASCADE
	ON DELETE CASCADE

	ALTER TABLE [dbo].[EST_NF_ENT_DANFE_PROVISORIO_SUSPENSO] CHECK CONSTRAINT [FK_EST_NF_ENT_DANFE_PROVISORIO_SUSPENSO_EST_NF_ENT_DANFE_PROVISORIO]
END
