CREATE TABLE LOGALTPRODCARD (    
    CDLOG 		      NUMBER, 
    CDINTEGRACAO 	  VARCHAR2(3),
    CDFILIAL 		  VARCHAR2(4), 
    IDEXTCARD 		  VARCHAR2(36), 
    CDOPERADOR 		  VARCHAR2(12), 
    CDPRODUTO 		  VARCHAR2(10), 
    IDEXTPROD 		  VARCHAR2(36), 
    NMPRODCARD 		  VARCHAR2(50), 
    DSALTERA 		  VARCHAR2(150), 
    CDEXTANT 		  VARCHAR2(14), 
    CDEXTATU 		  VARCHAR2(14), 
    VRPRECANT 		  FLOAT(126), 
    VRPRECATU 		  FLOAT(126), 
    TPALTERA 		  CHAR(1), 
	NRORG             NUMBER 	      DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg') 		NOT NULL,
    IDATIVO           VARCHAR2(1)     DEFAULT 'S'					NOT NULL,
    DTINCLUSAO        DATE            DEFAULT SYSDATE,
    DTULTATU          DATE            DEFAULT SYSDATE,
    NRORGINCLUSAO     NUMBER          DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg')		NULL,
    CDOPERINCLUSAO    VARCHAR2(12)    DEFAULT '1' 					NULL,
    NRORGULTATU       NUMBER          DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg')		NULL,
    CDOPERULTATU      VARCHAR2(12)    DEFAULT '1',
		CONSTRAINT CKC_IDATIVO_LOGALTPRODCARD CHECK (IDATIVO IN ('S','N'))
)
/
CREATE SEQUENCE SEQ_LOGALTPRODCARD START WITH 1 MINVALUE 1 INCREMENT BY 1