
IF OBJECT_ID('GLB_PROCD_OUTR_GLB_FRMS') IS NULL
	BEGIN 

		CREATE TABLE [dbo].[GLB_PROCD_OUTR_GLB_FRMS](
			[CD_OUTR_PROCD] [int] NOT NULL,
			[CD_FRM] [int] NOT NULL,
		 CONSTRAINT [PK_GLB_PROCD_OUTR_GLB_FRMS] PRIMARY KEY CLUSTERED 
		(
			[CD_OUTR_PROCD] ASC,
			[CD_FRM] 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_PROCD_OUTR_GLB_FRMS]  WITH CHECK ADD  CONSTRAINT [FK_GLB_PROCD_OUTR_GLB_FRMS_GLB_FRMS] FOREIGN KEY([CD_FRM])
		REFERENCES [dbo].[GLB_FRMS] ([CD_FRM])
		ON UPDATE CASCADE
		ON DELETE CASCADE		

		ALTER TABLE [dbo].[GLB_PROCD_OUTR_GLB_FRMS] CHECK CONSTRAINT [FK_GLB_PROCD_OUTR_GLB_FRMS_GLB_FRMS]
		

		ALTER TABLE [dbo].[GLB_PROCD_OUTR_GLB_FRMS]  WITH CHECK ADD  CONSTRAINT [FK_GLB_PROCD_OUTR_GLB_FRMS_GLB_PROCD_OUTR] FOREIGN KEY([CD_OUTR_PROCD])
		REFERENCES [dbo].[GLB_PROCD_OUTR] ([CD_OUTR_PROCD])
		ON UPDATE CASCADE
		ON DELETE CASCADE
		

		ALTER TABLE [dbo].[GLB_PROCD_OUTR_GLB_FRMS] CHECK CONSTRAINT [FK_GLB_PROCD_OUTR_GLB_FRMS_GLB_PROCD_OUTR]

	END		


