CREATE TABLE cst_del_onhand_valuations (
    VALUATION_ID              NUMBER(18, 0) ,
    PRIOR_VALUATION_ID        NUMBER(18, 0) ,
    COST_ORG_ID               NUMBER(18, 0)     NOT NULL,
    COST_BOOK_ID              NUMBER(18, 0)     NOT NULL,
    VAL_UNIT_ID               NUMBER(18, 0)     NOT NULL,
    INVENTORY_ITEM_ID         NUMBER(18, 0)     NOT NULL,
    PERIOD_NAME               VARCHAR2(60)      NOT NULL,
    START_DATE                DATE              NOT NULL,
    END_DATE                  DATE              NOT NULL,
    INVENTORY_ORG_ID          NUMBER(18, 0)     NOT NULL,
    REC_TRXN_ID               NUMBER(18, 0)     NOT NULL,
    SUBINVENTORY_CODE         VARCHAR2(40)      NOT NULL,
    LOCATOR_ID                NUMBER(18, 0)     NOT NULL,
    PROJECT_ID                NUMBER(18, 0)     NOT NULL,
    TASK_ID                   NUMBER(18, 0)     NOT NULL,
    COUNTRY_OF_ORIGIN_CODE    VARCHAR2(8)       NOT NULL,
    QUANTITY_ONHAND           NUMBER            NOT NULL,
    UOM_CODE                  VARCHAR2(12)      NOT NULL,
    UNIT_COST                 NUMBER        ,
    STANDARD_COST             NUMBER        ,
    PERP_AVERAGE_COST         NUMBER        ,
    CURRENCY_CODE             VARCHAR2(120) ,
    COST_METHOD_CODE          VARCHAR2(120)     NOT NULL,
    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) ,
    REQUEST_ID                NUMBER(18, 0) ,
    JOB_DEFINITION_NAME       VARCHAR2(400) ,
    JOB_DEFINITION_PACKAGE    VARCHAR2(3600),
    VALUATION_ID              NUMBER(18, 0) ,
    PRIOR_VALUATION_ID        NUMBER(18, 0) ,
    COST_ORG_ID               NUMBER(18, 0)     NOT NULL,
    COST_BOOK_ID              NUMBER(18, 0)     NOT NULL,
    VAL_UNIT_ID               NUMBER(18, 0)     NOT NULL,
    INVENTORY_ITEM_ID         NUMBER(18, 0)     NOT NULL,
    PERIOD_NAME               VARCHAR2(60)      NOT NULL,
    START_DATE                DATE              NOT NULL,
    END_DATE                  DATE              NOT NULL,
    INVENTORY_ORG_ID          NUMBER(18, 0)     NOT NULL,
    REC_TRXN_ID               NUMBER(18, 0)     NOT NULL,
    SUBINVENTORY_CODE         VARCHAR2(40)      NOT NULL,
    LOCATOR_ID                NUMBER(18, 0)     NOT NULL,
    PROJECT_ID                NUMBER(18, 0)     NOT NULL,
    TASK_ID                   NUMBER(18, 0)     NOT NULL,
    COUNTRY_OF_ORIGIN_CODE    VARCHAR2(8)       NOT NULL,
    QUANTITY_ONHAND           NUMBER            NOT NULL,
    UOM_CODE                  VARCHAR2(12)      NOT NULL,
    UNIT_COST                 NUMBER        ,
    STANDARD_COST             NUMBER        ,
    PERP_AVERAGE_COST         NUMBER        ,
    CURRENCY_CODE             VARCHAR2(120) ,
    COST_METHOD_CODE          VARCHAR2(120)     NOT NULL,
    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) ,
    REQUEST_ID                NUMBER(18, 0) ,
    JOB_DEFINITION_NAME       VARCHAR2(400) ,
    JOB_DEFINITION_PACKAGE    VARCHAR2(3600),
    CONSTRAINT pk_cst_del_onhand_valuations PRIMARY KEY (VALUATION_ID, VALUATION_ID)
);
