CREATE TABLE ap_trial_balances (
    AE_HEADER_ID              NUMBER(18, 0) ,
    BUSINESS_UNIT_ID          NUMBER(18, 0) ,
    INVOICE_ID                NUMBER(18, 0)     NOT NULL,
    VENDOR_ID                 NUMBER(18, 0) ,
    VENDOR_SITE_ID            NUMBER(18, 0) ,
    PARTY_ID                  NUMBER(18, 0) ,
    PARTY_SITE_ID             NUMBER(18, 0) ,
    TRX_CURRENCY_CODE         VARCHAR2(120) ,
    CODE_COMBINATION_ID       NUMBER(18, 0)     NOT NULL,
    LEDGER_ID                 NUMBER(18, 0)     NOT NULL,
    ACCOUNTING_DATE           DATE              NOT NULL,
    ACCOUNTING_CLASS_CODE     VARCHAR2(120) ,
    ENTERED_DR                NUMBER        ,
    ENTERED_CR                NUMBER        ,
    ACCOUNTED_DR              NUMBER        ,
    ACCOUNTED_CR              NUMBER        ,
    CREATION_DATE             TIMESTAMP(6)      NOT NULL,
    CREATED_BY                VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE          TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY           VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_LOGIN         VARCHAR2(128) ,
    PROGRAM_UPDATE_DATE       DATE          ,
    PROGRAM_APPLICATION_ID    NUMBER(18, 0) ,
    PROGRAM_ID                NUMBER(18, 0) ,
    REQUEST_ID                NUMBER(18, 0) ,
    OBJECT_VERSION_NUMBER     NUMBER(9, 0)      NOT NULL,
    JOB_DEFINITION_NAME       VARCHAR2(400) ,
    JOB_DEFINITION_PACKAGE    VARCHAR2(3600),
    AE_HEADER_ID              NUMBER(18, 0) ,
    BUSINESS_UNIT_ID          NUMBER(18, 0) ,
    INVOICE_ID                NUMBER(18, 0)     NOT NULL,
    VENDOR_ID                 NUMBER(18, 0) ,
    VENDOR_SITE_ID            NUMBER(18, 0) ,
    PARTY_ID                  NUMBER(18, 0) ,
    PARTY_SITE_ID             NUMBER(18, 0) ,
    TRX_CURRENCY_CODE         VARCHAR2(120) ,
    CODE_COMBINATION_ID       NUMBER(18, 0)     NOT NULL,
    LEDGER_ID                 NUMBER(18, 0)     NOT NULL,
    ACCOUNTING_DATE           DATE              NOT NULL,
    ACCOUNTING_CLASS_CODE     VARCHAR2(120) ,
    ENTERED_DR                NUMBER        ,
    ENTERED_CR                NUMBER        ,
    ACCOUNTED_DR              NUMBER        ,
    ACCOUNTED_CR              NUMBER        ,
    CREATION_DATE             TIMESTAMP(6)      NOT NULL,
    CREATED_BY                VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE          TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY           VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_LOGIN         VARCHAR2(128) ,
    PROGRAM_UPDATE_DATE       DATE          ,
    PROGRAM_APPLICATION_ID    NUMBER(18, 0) ,
    PROGRAM_ID                NUMBER(18, 0) ,
    REQUEST_ID                NUMBER(18, 0) ,
    OBJECT_VERSION_NUMBER     NUMBER(9, 0)      NOT NULL,
    JOB_DEFINITION_NAME       VARCHAR2(400) ,
    JOB_DEFINITION_PACKAGE    VARCHAR2(3600)
);
