
IF  NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[RC_CLI_CONV_SEGMENTO]') AND type in (N'U'))
BEGIN
	CREATE TABLE [dbo].[RC_CLI_CONV_SEGMENTO](
		[CD_SEGMTO] [int] NOT NULL,
		[DS_SEGMTO] [varchar](50) NULL,
	 CONSTRAINT [PK_RC_CLI_CONV_SEGMENTO] PRIMARY KEY CLUSTERED 
	(
		[CD_SEGMTO] 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].[RC_CLI_CONV_SEGMENTO] ADD  CONSTRAINT [DF_RC_CLI_CONV_SEGMENTO_CD_SEGMTO]  DEFAULT ((0)) FOR [CD_SEGMTO]
	INSERT INTO RC_CLI_CONV_SEGMENTO VALUES(0,'NAO INFORMADO')
END

	