CREATE TABLE cml_inv_estimates_gt (
    INV_ESTIMATES_ID             NUMBER(18, 0),
    INVOICE_ID                   NUMBER(18, 0)    NOT NULL,
    TRADE_OPERATION_ID           VARCHAR2(80)     NOT NULL,
    INVOICE_LINE_NUMBER          VARCHAR2(160)    NOT NULL,
    NAME                         VARCHAR2(320),
    TRADE_OPERATION_NUMBER       VARCHAR2(160)    NOT NULL,
    TRADE_OPERATION_CHARGE_ID    NUMBER(18, 0)    NOT NULL,
    CHARGE_LINE_NUMBER           NUMBER(9, 0)     NOT NULL,
    CHARGE_ID                    NUMBER(18, 0)    NOT NULL,
    ENTERED_AMOUNT               NUMBER       ,
    CURRENCY_CODE                VARCHAR2(60) ,
    INV_ESTIMATES_ID             NUMBER(18, 0),
    INVOICE_ID                   NUMBER(18, 0)    NOT NULL,
    TRADE_OPERATION_ID           VARCHAR2(80)     NOT NULL,
    INVOICE_LINE_NUMBER          VARCHAR2(160)    NOT NULL,
    NAME                         VARCHAR2(320),
    TRADE_OPERATION_NUMBER       VARCHAR2(160)    NOT NULL,
    TRADE_OPERATION_CHARGE_ID    NUMBER(18, 0)    NOT NULL,
    CHARGE_LINE_NUMBER           NUMBER(9, 0)     NOT NULL,
    CHARGE_ID                    NUMBER(18, 0)    NOT NULL,
    ENTERED_AMOUNT               NUMBER       ,
    CURRENCY_CODE                VARCHAR2(60) ,
    CONSTRAINT pk_cml_inv_estimates_gt PRIMARY KEY (INV_ESTIMATES_ID, INV_ESTIMATES_ID)
);
