IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PRC_FILIAL_CONFIG_AUDIT_TRIGGER]') AND type in (N'U'))
BEGIN

CREATE TABLE PRC_FILIAL_CONFIG_AUDIT_TRIGGER(
	[CD_CTR_AUDIT_TRIGGER] [BIGINT] IDENTITY(1,1) NOT NULL,
	[ID_AUDIT] [BIGINT] NULL,
	[SPID] [INT] NULL,
	[DT_EVENT] [DATETIME] NULL,
	[OPERACAO] [VARCHAR](20) NULL,
	[CD_EMP] [INT] NULL,
	[CD_FILIAL] [INT] NULL,
	[CD_CHAVE] [NVARCHAR](100) NOT NULL,
	[VALOR] [VARCHAR](255) NULL,
	[CD_USU] [INT] NULL,
	[DT_ULT_ALT] [DATETIME] NULL,
	[GRAVA_MINUSCULO] [INT] NULL,
 CONSTRAINT PK_PRC_FILIAL_CONFIG_AUDIT_TRIGGER PRIMARY KEY (CD_CTR_AUDIT_TRIGGER))

END