CREATE TABLE VALIDA_VENC(
	CDFORMPGTO 		  VARCHAR2(04) NOT NULL,
    CNPJ       		  VARCHAR2(21) NOT NULL,
    RAZAOSOCIAL 	  VARCHAR2(500) NOT NULL,
    NRDIASPGTO 		  NUMBER,
    VRPERCPGTO 		  FLOAT,
    IDTPPERIODO 	  VARCHAR2(01) ,
    IDFORNCLIE 		  VARCHAR2(20),
    DTVENC     		  DATE,
    IDCONSDIAUTIL 	  VARCHAR2(01),
    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_VALIDA_VENC CHECK (IDATIVO IN ('S','N'))
   )
/