CREATE TABLE ce_statement_headers (
    STATEMENT_HEADER_ID          NUMBER(18, 0),
    BALANCE_CHECK                NUMBER       ,
    STATEMENT_NUMBER             VARCHAR2(200),
    BANK_ACCOUNT_ID              NUMBER(18, 0)    NOT NULL,
    CURRENCY_CODE                VARCHAR2(120),
    ELECTRONIC_SEQ_NUM           VARCHAR2(80) ,
    LEGAL_SEQ_NUM                VARCHAR2(80) ,
    STATEMENT_DATE               DATE             NOT NULL,
    STMT_FROM_DATE               DATE             NOT NULL,
    STMT_TO_DATE                 DATE             NOT NULL,
    RECON_STATUS_CODE            VARCHAR2(120)    NOT NULL,
    AUTOREC_PROCESS_CODE         VARCHAR2(120),
    AUTOREC_PROCESS_ID           NUMBER       ,
    STATEMENT_ENTRY_TYPE         VARCHAR2(120),
    STATEMENT_TYPE               VARCHAR2(120),
    INBOUND_FILE_ID              NUMBER(18, 0),
    LAST_UPDATE_DATE             TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY              VARCHAR2(256)    NOT NULL,
    CREATION_DATE                TIMESTAMP(6)     NOT NULL,
    CREATED_BY                   VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN            VARCHAR2(128),
    OBJECT_VERSION_NUMBER        NUMBER(9, 0)     NOT NULL,
    ATTRIBUTE_CATEGORY           VARCHAR2(600),
    ATTRIBUTE1                   VARCHAR2(600),
    ATTRIBUTE2                   VARCHAR2(600),
    ATTRIBUTE3                   VARCHAR2(600),
    ATTRIBUTE4                   VARCHAR2(600),
    ATTRIBUTE5                   VARCHAR2(600),
    ATTRIBUTE6                   VARCHAR2(600),
    ATTRIBUTE7                   VARCHAR2(600),
    ATTRIBUTE8                   VARCHAR2(600),
    ATTRIBUTE9                   VARCHAR2(600),
    ATTRIBUTE10                  VARCHAR2(600),
    ATTRIBUTE11                  VARCHAR2(600),
    ATTRIBUTE12                  VARCHAR2(600),
    ATTRIBUTE13                  VARCHAR2(600),
    ATTRIBUTE14                  VARCHAR2(600),
    ATTRIBUTE15                  VARCHAR2(600),
    GLOBAL_ATTRIBUTE_CATEGORY    VARCHAR2(600),
    GLOBAL_ATTRIBUTE1            VARCHAR2(600),
    GLOBAL_ATTRIBUTE2            VARCHAR2(600),
    GLOBAL_ATTRIBUTE3            VARCHAR2(600),
    GLOBAL_ATTRIBUTE4            VARCHAR2(600),
    GLOBAL_ATTRIBUTE5            VARCHAR2(600),
    GLOBAL_ATTRIBUTE6            VARCHAR2(600),
    GLOBAL_ATTRIBUTE7            VARCHAR2(600),
    GLOBAL_ATTRIBUTE8            VARCHAR2(600),
    GLOBAL_ATTRIBUTE9            VARCHAR2(600),
    GLOBAL_ATTRIBUTE10           VARCHAR2(600),
    GLOBAL_ATTRIBUTE11           VARCHAR2(600),
    GLOBAL_ATTRIBUTE12           VARCHAR2(600),
    GLOBAL_ATTRIBUTE13           VARCHAR2(600),
    GLOBAL_ATTRIBUTE14           VARCHAR2(600),
    GLOBAL_ATTRIBUTE15           VARCHAR2(600),
    INTRADAY_FLAG                VARCHAR2(4)  ,
    DOCUMENT_ID                  NUMBER(18, 0),
    STATEMENT_HEADER_ID          NUMBER(18, 0),
    STATEMENT_NUMBER             VARCHAR2(200),
    BANK_ACCOUNT_ID              NUMBER(18, 0)    NOT NULL,
    CURRENCY_CODE                VARCHAR2(120),
    ELECTRONIC_SEQ_NUM           VARCHAR2(80) ,
    LEGAL_SEQ_NUM                VARCHAR2(80) ,
    STATEMENT_DATE               DATE             NOT NULL,
    STMT_FROM_DATE               DATE             NOT NULL,
    STMT_TO_DATE                 DATE             NOT NULL,
    RECON_STATUS_CODE            VARCHAR2(120)    NOT NULL,
    AUTOREC_PROCESS_CODE         VARCHAR2(120),
    AUTOREC_PROCESS_ID           NUMBER       ,
    STATEMENT_ENTRY_TYPE         VARCHAR2(120),
    STATEMENT_TYPE               VARCHAR2(120),
    INBOUND_FILE_ID              NUMBER(18, 0),
    LAST_UPDATE_DATE             TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY              VARCHAR2(256)    NOT NULL,
    CREATION_DATE                TIMESTAMP(6)     NOT NULL,
    CREATED_BY                   VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN            VARCHAR2(128),
    OBJECT_VERSION_NUMBER        NUMBER(9, 0)     NOT NULL,
    ATTRIBUTE_CATEGORY           VARCHAR2(600),
    ATTRIBUTE1                   VARCHAR2(600),
    ATTRIBUTE2                   VARCHAR2(600),
    ATTRIBUTE3                   VARCHAR2(600),
    ATTRIBUTE4                   VARCHAR2(600),
    ATTRIBUTE5                   VARCHAR2(600),
    ATTRIBUTE6                   VARCHAR2(600),
    ATTRIBUTE7                   VARCHAR2(600),
    ATTRIBUTE8                   VARCHAR2(600),
    ATTRIBUTE9                   VARCHAR2(600),
    ATTRIBUTE10                  VARCHAR2(600),
    ATTRIBUTE11                  VARCHAR2(600),
    ATTRIBUTE12                  VARCHAR2(600),
    ATTRIBUTE13                  VARCHAR2(600),
    ATTRIBUTE14                  VARCHAR2(600),
    ATTRIBUTE15                  VARCHAR2(600),
    GLOBAL_ATTRIBUTE_CATEGORY    VARCHAR2(600),
    GLOBAL_ATTRIBUTE1            VARCHAR2(600),
    GLOBAL_ATTRIBUTE2            VARCHAR2(600),
    GLOBAL_ATTRIBUTE3            VARCHAR2(600),
    GLOBAL_ATTRIBUTE4            VARCHAR2(600),
    GLOBAL_ATTRIBUTE5            VARCHAR2(600),
    GLOBAL_ATTRIBUTE6            VARCHAR2(600),
    GLOBAL_ATTRIBUTE7            VARCHAR2(600),
    GLOBAL_ATTRIBUTE8            VARCHAR2(600),
    GLOBAL_ATTRIBUTE9            VARCHAR2(600),
    GLOBAL_ATTRIBUTE10           VARCHAR2(600),
    GLOBAL_ATTRIBUTE11           VARCHAR2(600),
    GLOBAL_ATTRIBUTE12           VARCHAR2(600),
    GLOBAL_ATTRIBUTE13           VARCHAR2(600),
    GLOBAL_ATTRIBUTE14           VARCHAR2(600),
    GLOBAL_ATTRIBUTE15           VARCHAR2(600),
    BALANCE_CHECK                NUMBER       ,
    INTRADAY_FLAG                VARCHAR2(4)  ,
    DOCUMENT_ID                  NUMBER(18, 0),
    CONSTRAINT pk_ce_statement_headers PRIMARY KEY (STATEMENT_HEADER_ID, STATEMENT_HEADER_ID)
);
