IF NOT EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME=N'EST_PROD_STATUS_PROC')
 BEGIN
  SET ANSI_NULLS ON
  SET QUOTED_IDENTIFIER ON
  CREATE TABLE [dbo].[EST_PROD_STATUS_PROC](
   [CD_CTR] [int] IDENTITY(1,1) NOT NULL,
   [CD_USU] [int] NOT NULL,
   [DT_CAD] [datetime] NOT NULL DEFAULT GETDATE(),
   [DT_PROC] [datetime],
   [STS_PROC] [int] NOT NULL DEFAULT 0,
   [NIVEL] [int] NOT NULL  DEFAULT 0,
   [CD_CTR_SCHEDULE_JOB] [int] NOT NULL,
  
    CONSTRAINT [PK_EST_PROD_STATUS_PROC] 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]
 END

