CREATE TABLE BUDGET (
    ORGANIZATION_ID 			NUMBER(10,0) 								NOT NULL ENABLE,
    ID NUMBER(10,0) 												NOT NULL ENABLE,
    CREATED_BY 				NUMBER(10,0) 								DEFAULT NULL,
    CREATED_AT 				DATE 									DEFAULT SYSDATE NOT NULL ENABLE,
    UPDATED_BY 				NUMBER(10,0) 								DEFAULT NULL,
    UPDATED_AT 				DATE 									DEFAULT SYSDATE NOT NULL ENABLE,
    SITUATION 				VARCHAR2(1 BYTE) 							DEFAULT 'C' NOT NULL ENABLE,
    TASK 				NUMBER(10,0) 								NOT NULL ENABLE,
    DISCOUNT_PERCENT 			FLOAT(126) 								DEFAULT NULL,
    DISCOUNT_VALUE 			FLOAT(126) 								DEFAULT NULL,
    EXTERNAL_ID 			NUMBER(10,0) 								DEFAULT NULL,
    NRORG                  		NUMBER          DEFAULT         SYS_CONTEXT('nrorg_ctx','nrorg') 	NOT NULL,
    IDATIVO                		VARCHAR2(1)     DEFAULT 'S' 						NOT NULL
    	CONSTRAINT CKC_IDATIVO_BUDGET   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'
   )