CREATE TABLE BUDGET_PLOTS (
  ORGANIZATION_ID NUMBER(10) NOT NULL, 
  ID NUMBER(10) NOT NULL, 
  CREATED_BY NUMBER(10) DEFAULT NULL NULL, 
  CREATED_AT DATE DEFAULT SYSDATE NOT NULL, 
  UPDATED_BY NUMBER(10) DEFAULT NULL NULL, 
  UPDATED_AT DATE DEFAULT SYSDATE NOT NULL, 
  BUDGET NUMBER(10) NOT NULL, 
  ORDER_PLOTS NUMBER(10) NOT NULL, 
  VALUE_PLOTS DOUBLE PRECISION DEFAULT NULL NULL,
  DAYS_PAYMENT NUMBER(10) NOT NULL,
  CONSTRAINT BUDGET_PLOTS_PK PRIMARY KEY(ID),
  CONSTRAINT FK_BUDGET_PLOTS_BUD FOREIGN KEY (BUDGET) REFERENCES BUDGET (ID)
)
/
CREATE SEQUENCE SEQ_BUDGET_PLOTS START WITH 1 MINVALUE 1 INCREMENT BY 1