CREATE TABLE [dbo].[GLB_CONSOLIDA_GLB_USU_AUDIT](
	[CD_EMP] [int] NOT NULL,
	[CD_CTR] [int] NOT NULL,
	[CD_FILIAL] [int] NOT NULL,
	[CD_USU] [int] NULL,
	[DT_CAD] [datetime] NOT NULL,
 CONSTRAINT [PK_GLB_CONSOLIDA_GLB_USU_AUDIT] PRIMARY KEY CLUSTERED 
(
	[CD_EMP] ASC,
	[CD_CTR] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[GLB_CONSOLIDA_GLB_USU_AUDIT] ADD  CONSTRAINT [DF_GLB_CONSOLIDA_GLB_USU_AUDIT_CD_EMP]  DEFAULT ((0)) FOR [CD_EMP]
GO

ALTER TABLE [dbo].[GLB_CONSOLIDA_GLB_USU_AUDIT] ADD  CONSTRAINT [DF_GLB_CONSOLIDA_GLB_USU_AUDIT_CD_CTR]  DEFAULT ((0)) FOR [CD_CTR]
GO

ALTER TABLE [dbo].[GLB_CONSOLIDA_GLB_USU_AUDIT] ADD  CONSTRAINT [DF_GLB_CONSOLIDA_GLB_USU_AUDIT_CD_FILIAL]  DEFAULT ((0)) FOR [CD_FILIAL]
GO

ALTER TABLE [dbo].[GLB_CONSOLIDA_GLB_USU_AUDIT] ADD  CONSTRAINT [DF_GLB_CONSOLIDA_GLB_USU_AUDIT_CD_USU]  DEFAULT ((0)) FOR [CD_USU]
GO

ALTER TABLE [dbo].[GLB_CONSOLIDA_GLB_USU_AUDIT] ADD  DEFAULT (CONVERT([varchar](10),getdate(),(101))) FOR [DT_CAD]
GO

