CREATE TABLE ZH_LOG_PRODUCT_CONF (
    PRODUCT_ID 		NUMBER 			PRIMARY KEY,
    ORGANIZATION_ID 	NUMBER,
    IS_LOG_ACTIVE 	VARCHAR2(1) 		DEFAULT 'N',
    ALL_TOGGLED 	VARCHAR2(1) 		DEFAULT 'N',
    CONSTRAINT ZH_LOG_PRODUCT_IS_BOOLEAN CHECK (IS_LOG_ACTIVE IN ('Y', 'N')),
    CONSTRAINT ZH_LOG_PRODUCT_ALL_TOGGLED CHECK (ALL_TOGGLED IN ('Y', 'N')),
    NRORG               NUMBER 			DEFAULT 	SYS_CONTEXT('nrorg_ctx','nrorg') NOT NULL,
    IDATIVO              VARCHAR2(1)     	DEFAULT 'S' NOT NULL
      CONSTRAINT CKC_IDATIVO_ZH_LOG_PROD_CON CHECK (IDATIVO IN ('S','N')),
    DTINCLUSAO           DATE                    NULL,
    DTULTATU             DATE                    NULL,
    NRORGINCLUSAO        NUMBER                  DEFAULT 1 NULL,
    CDOPERINCLUSAO       VARCHAR2(12)  		DEFAULT '1' NULL,
    NRORGULTATU          NUMBER                  DEFAULT 1 NULL,
    CDOPERULTATU         VARCHAR2(12)  		DEFAULT '1'	
) 