CREATE TABLE doo_order_external_details (
    ORDER_EXT_DETAIL_ID          NUMBER(18, 0),
    HEADER_ID                    NUMBER(18, 0),
    FULFILL_LINE_ID              NUMBER(18, 0),
    ORG_ID                       NUMBER(18, 0),
    EXTERNAL_VERSION_NUMBER      NUMBER(18, 0),
    INTERFACED_ORDER_REVISION    NUMBER(18, 0),
    TARGET_APP                   VARCHAR2(120)    NOT NULL,
    EXTRACTION_STATUS            VARCHAR2(120)    NOT NULL,
    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),
    OBJECT_VERSION_NUMBER        NUMBER(9, 0)     NOT NULL,
    CHARGE_DEFINITION_CODE       VARCHAR2(120),
    ORDER_EXT_DETAIL_ID          NUMBER(18, 0),
    HEADER_ID                    NUMBER(18, 0),
    FULFILL_LINE_ID              NUMBER(18, 0),
    ORG_ID                       NUMBER(18, 0),
    EXTERNAL_VERSION_NUMBER      NUMBER(18, 0),
    INTERFACED_ORDER_REVISION    NUMBER(18, 0),
    TARGET_APP                   VARCHAR2(120)    NOT NULL,
    EXTRACTION_STATUS            VARCHAR2(120)    NOT NULL,
    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),
    OBJECT_VERSION_NUMBER        NUMBER(9, 0)     NOT NULL,
    CHARGE_DEFINITION_CODE       VARCHAR2(120),
    CONSTRAINT pk_doo_order_external_details PRIMARY KEY (ORDER_EXT_DETAIL_ID, ORDER_EXT_DETAIL_ID)
);
