CREATE TABLE cst_pac_user_adj_headers (
    PAC_USER_ADJUSTMENT_ID       NUMBER(18, 0) ,
    HEADER_REFERENCE_NUMBER      VARCHAR2(72)  ,
    OBJECT_VERSION_NUMBER        NUMBER(9, 0)      NOT NULL,
    EXTERNAL_SYSTEM_REFERENCE    VARCHAR2(240) ,
    EXTERNAL_SYSTEM_REF_ID       VARCHAR2(120) ,
    ADJUSTMENT_NUMBER            VARCHAR2(200)     NOT NULL,
    ADJUSTMENT_TYPE              VARCHAR2(120)     NOT NULL,
    ADJUSTMENT_DATE              TIMESTAMP(6)      NOT NULL,
    COST_ORG_ID                  NUMBER(18, 0)     NOT NULL,
    COST_BOOK_ID                 NUMBER(18, 0)     NOT NULL,
    INVENTORY_ITEM_ID            NUMBER(18, 0)     NOT NULL,
    VAL_UNIT_ID                  NUMBER(18, 0)     NOT NULL,
    ITEM_COST_PROFILE_ID         NUMBER(18, 0)     NOT NULL,
    COST_PROFILE_ID              NUMBER(18, 0)     NOT NULL,
    PERIOD_NAME                  VARCHAR2(60)      NOT NULL,
    TRANSACTION_ID               NUMBER(18, 0) ,
    UOM_CODE                     VARCHAR2(12)  ,
    ADJUSTMENT_REASON_CODE       VARCHAR2(800) ,
    TOTAL_UNIT_COST              NUMBER        ,
    CURRENCY_CODE                VARCHAR2(60)  ,
    ERROR_MESSAGE                VARCHAR2(240) ,
    BASE_TXN_TYPE_ID             NUMBER(18, 0)     NOT NULL,
    BASE_TXN_SOURCE_TYPE_ID      NUMBER(18, 0)     NOT NULL,
    BASE_TXN_ACTION_ID           NUMBER(18, 0)     NOT NULL,
    PROCESSED_FLAG               VARCHAR2(4)       NOT NULL,
    UPDATE_FLAG                  VARCHAR2(4)   ,
    CODE_COMBINATION_ID          NUMBER(18, 0) ,
    CREATED_BY                   VARCHAR2(256)     NOT NULL,
    CREATION_DATE                TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY              VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE             TIMESTAMP(6)      NOT NULL,
    LAST_UPDATE_LOGIN            VARCHAR2(128) ,
    ATTRIBUTE_CATEGORY           VARCHAR2(80)  ,
    ATTRIBUTE_CHAR1              VARCHAR2(600) ,
    ATTRIBUTE_CHAR2              VARCHAR2(600) ,
    ATTRIBUTE_CHAR3              VARCHAR2(600) ,
    ATTRIBUTE_CHAR4              VARCHAR2(600) ,
    ATTRIBUTE_CHAR5              VARCHAR2(600) ,
    ATTRIBUTE_CHAR6              VARCHAR2(600) ,
    ATTRIBUTE_CHAR7              VARCHAR2(600) ,
    ATTRIBUTE_CHAR8              VARCHAR2(600) ,
    ATTRIBUTE_CHAR9              VARCHAR2(600) ,
    ATTRIBUTE_CHAR10             VARCHAR2(600) ,
    ATTRIBUTE_CHAR11             VARCHAR2(600) ,
    ATTRIBUTE_CHAR12             VARCHAR2(600) ,
    ATTRIBUTE_CHAR13             VARCHAR2(600) ,
    ATTRIBUTE_CHAR14             VARCHAR2(600) ,
    ATTRIBUTE_CHAR15             VARCHAR2(600) ,
    ATTRIBUTE_CHAR16             VARCHAR2(600) ,
    ATTRIBUTE_CHAR17             VARCHAR2(600) ,
    ATTRIBUTE_CHAR18             VARCHAR2(600) ,
    ATTRIBUTE_CHAR19             VARCHAR2(600) ,
    ATTRIBUTE_CHAR20             VARCHAR2(600) ,
    ATTRIBUTE_NUMBER1            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER2            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER3            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER4            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER5            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER6            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER7            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER8            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER9            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER10           NUMBER(18, 0) ,
    ATTRIBUTE_DATE1              DATE          ,
    ATTRIBUTE_DATE2              DATE          ,
    ATTRIBUTE_DATE3              DATE          ,
    ATTRIBUTE_DATE4              DATE          ,
    ATTRIBUTE_DATE5              DATE          ,
    ATTRIBUTE_TIMESTAMP1         TIMESTAMP(6)  ,
    ATTRIBUTE_TIMESTAMP2         TIMESTAMP(6)  ,
    ATTRIBUTE_TIMESTAMP3         TIMESTAMP(6)  ,
    ATTRIBUTE_TIMESTAMP4         TIMESTAMP(6)  ,
    ATTRIBUTE_TIMESTAMP5         TIMESTAMP(6)  ,
    CHART_OF_ACCOUNTS_ID         NUMBER(18, 0) ,
    ACCOUNT_CODE_COMBINATION     VARCHAR2(4000),
    PAC_USER_ADJUSTMENT_ID       NUMBER(18, 0) ,
    OBJECT_VERSION_NUMBER        NUMBER(9, 0)      NOT NULL,
    EXTERNAL_SYSTEM_REFERENCE    VARCHAR2(240) ,
    EXTERNAL_SYSTEM_REF_ID       VARCHAR2(120) ,
    ADJUSTMENT_NUMBER            VARCHAR2(200)     NOT NULL,
    ADJUSTMENT_TYPE              VARCHAR2(120)     NOT NULL,
    ADJUSTMENT_DATE              TIMESTAMP(6)      NOT NULL,
    COST_ORG_ID                  NUMBER(18, 0)     NOT NULL,
    COST_BOOK_ID                 NUMBER(18, 0)     NOT NULL,
    INVENTORY_ITEM_ID            NUMBER(18, 0)     NOT NULL,
    VAL_UNIT_ID                  NUMBER(18, 0)     NOT NULL,
    ITEM_COST_PROFILE_ID         NUMBER(18, 0)     NOT NULL,
    COST_PROFILE_ID              NUMBER(18, 0)     NOT NULL,
    PERIOD_NAME                  VARCHAR2(60)      NOT NULL,
    TRANSACTION_ID               NUMBER(18, 0) ,
    UOM_CODE                     VARCHAR2(12)  ,
    ADJUSTMENT_REASON_CODE       VARCHAR2(800) ,
    TOTAL_UNIT_COST              NUMBER        ,
    CURRENCY_CODE                VARCHAR2(60)  ,
    ERROR_MESSAGE                VARCHAR2(240) ,
    BASE_TXN_TYPE_ID             NUMBER(18, 0)     NOT NULL,
    BASE_TXN_SOURCE_TYPE_ID      NUMBER(18, 0)     NOT NULL,
    BASE_TXN_ACTION_ID           NUMBER(18, 0)     NOT NULL,
    PROCESSED_FLAG               VARCHAR2(4)       NOT NULL,
    UPDATE_FLAG                  VARCHAR2(4)   ,
    CODE_COMBINATION_ID          NUMBER(18, 0) ,
    CREATED_BY                   VARCHAR2(256)     NOT NULL,
    CREATION_DATE                TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY              VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE             TIMESTAMP(6)      NOT NULL,
    LAST_UPDATE_LOGIN            VARCHAR2(128) ,
    ATTRIBUTE_CATEGORY           VARCHAR2(80)  ,
    ATTRIBUTE_CHAR1              VARCHAR2(600) ,
    ATTRIBUTE_CHAR2              VARCHAR2(600) ,
    ATTRIBUTE_CHAR3              VARCHAR2(600) ,
    ATTRIBUTE_CHAR4              VARCHAR2(600) ,
    ATTRIBUTE_CHAR5              VARCHAR2(600) ,
    ATTRIBUTE_CHAR6              VARCHAR2(600) ,
    ATTRIBUTE_CHAR7              VARCHAR2(600) ,
    ATTRIBUTE_CHAR8              VARCHAR2(600) ,
    ATTRIBUTE_CHAR9              VARCHAR2(600) ,
    ATTRIBUTE_CHAR10             VARCHAR2(600) ,
    ATTRIBUTE_CHAR11             VARCHAR2(600) ,
    ATTRIBUTE_CHAR12             VARCHAR2(600) ,
    ATTRIBUTE_CHAR13             VARCHAR2(600) ,
    ATTRIBUTE_CHAR14             VARCHAR2(600) ,
    ATTRIBUTE_CHAR15             VARCHAR2(600) ,
    ATTRIBUTE_CHAR16             VARCHAR2(600) ,
    ATTRIBUTE_CHAR17             VARCHAR2(600) ,
    ATTRIBUTE_CHAR18             VARCHAR2(600) ,
    ATTRIBUTE_CHAR19             VARCHAR2(600) ,
    ATTRIBUTE_CHAR20             VARCHAR2(600) ,
    ATTRIBUTE_NUMBER1            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER2            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER3            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER4            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER5            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER6            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER7            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER8            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER9            NUMBER(18, 0) ,
    ATTRIBUTE_NUMBER10           NUMBER(18, 0) ,
    ATTRIBUTE_DATE1              DATE          ,
    ATTRIBUTE_DATE2              DATE          ,
    ATTRIBUTE_DATE3              DATE          ,
    ATTRIBUTE_DATE4              DATE          ,
    ATTRIBUTE_DATE5              DATE          ,
    ATTRIBUTE_TIMESTAMP1         TIMESTAMP(6)  ,
    ATTRIBUTE_TIMESTAMP2         TIMESTAMP(6)  ,
    ATTRIBUTE_TIMESTAMP3         TIMESTAMP(6)  ,
    ATTRIBUTE_TIMESTAMP4         TIMESTAMP(6)  ,
    ATTRIBUTE_TIMESTAMP5         TIMESTAMP(6)  ,
    HEADER_REFERENCE_NUMBER      VARCHAR2(72)  ,
    CHART_OF_ACCOUNTS_ID         NUMBER(18, 0) ,
    ACCOUNT_CODE_COMBINATION     VARCHAR2(4000),
    CONSTRAINT pk_cst_pac_user_adj_headers PRIMARY KEY (PAC_USER_ADJUSTMENT_ID, PAC_USER_ADJUSTMENT_ID)
);
