
/****** Object:  Table [dbo].[EST_NF_ENT_DANFE_PROVISORIO_NAO_ENCONTRADO]    Script Date: 04/30/2013 12:19:30 ******/
IF  NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EST_NF_ENT_DANFE_PROVISORIO_NAO_ENCONTRADO]') AND type in (N'U'))
begin
CREATE TABLE [dbo].[EST_NF_ENT_DANFE_PROVISORIO_NAO_ENCONTRADO](
	[CD_EMP] [int] NOT NULL,
	[CD_FILIAL] [int] NOT NULL,
	[CD_FORN] [int] NOT NULL,
	[NR_AUTORIZADOR] [varchar](150) NOT NULL,
 CONSTRAINT [PK_EST_NF_ENT_DANFE_PROVISORIO_NAO_ENCONTRADO] PRIMARY KEY CLUSTERED 
(
	[NR_AUTORIZADOR] 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_NAO_ENCONTRADO] ADD  CONSTRAINT [DF_EST_NF_ENT_DANFE_PROVISORIO_NAO_ENCONTRADO_CD_EMP]  DEFAULT ((0)) FOR [CD_EMP]

ALTER TABLE [dbo].[EST_NF_ENT_DANFE_PROVISORIO_NAO_ENCONTRADO] ADD  CONSTRAINT [DF_EST_NF_ENT_DANFE_PROVISORIO_NAO_ENCONTRADO_CD_FILIAL]  DEFAULT ((0)) FOR [CD_FILIAL]

ALTER TABLE [dbo].[EST_NF_ENT_DANFE_PROVISORIO_NAO_ENCONTRADO] ADD  CONSTRAINT [DF_EST_NF_ENT_DANFE_PROVISORIO_NAO_ENCONTRADO_CD_FORN]  DEFAULT ((0)) FOR [CD_FORN]

ALTER TABLE [dbo].[EST_NF_ENT_DANFE_PROVISORIO_NAO_ENCONTRADO] ADD  CONSTRAINT [DF_EST_NF_ENT_DANFE_PROVISORIO_NAO_ENCONTRADO_NR_AUTORIZADOR]  DEFAULT ('') FOR [NR_AUTORIZADOR]
end

