CREATE TABLE cst_layer_costs_s_gt (
    LAYER_COST_ID                 NUMBER(18, 0) ,
    TXFR_ADJ_POSTED_FLAG          VARCHAR2(4)   ,
    TRANSACTION_ID                NUMBER(18, 0)     NOT NULL,
    REC_TRXN_ID                   NUMBER(18, 0)     NOT NULL,
    DEP_TRXN_ID                   NUMBER(18, 0)     NOT NULL,
    COST_ELEMENT_ID               NUMBER(18, 0)     NOT NULL,
    EXPENSE_POOL_ID               NUMBER(18, 0)     NOT NULL,
    EFF_DATE                      TIMESTAMP(6)      NOT NULL,
    TRANSACTION_COST_ID           NUMBER(18, 0)     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,
    COST_DATE                     TIMESTAMP(6)  ,
    BASE_TXN_TYPE_ID              NUMBER(18, 0) ,
    COST_SOURCE                   VARCHAR2(120) ,
    COST_REFERENCE                VARCHAR2(400) ,
    COST_TRANSACTION_TYPE         VARCHAR2(40)  ,
    ADDITIONAL_PROCESSING_CODE    VARCHAR2(960) ,
    ABSORPTION_TYPE               VARCHAR2(120) ,
    QUANTITY                      NUMBER        ,
    UOM_CODE                      VARCHAR2(100) ,
    UNIT_COST                     NUMBER        ,
    CURRENCY_CODE                 VARCHAR2(120)     NOT NULL,
    ADJ_POSTED_FLAG               VARCHAR2(20)      NOT NULL,
    WO_COST_POSTED_FLAG           VARCHAR2(4)       NOT NULL,
    SVC_WIP_ADJ_POSTED_FLAG       VARCHAR2(4)   ,
    POSTED_FLAG                   VARCHAR2(20)  ,
    DISTRIBUTION_ID               NUMBER(18, 0) ,
    PERPAVG_COST_ID               NUMBER(18, 0) ,
    STD_COST_ID                   NUMBER(18, 0) ,
    ONHAND_VALUE                  NUMBER        ,
    ONHAND_QUANTITY               NUMBER        ,
    ONHAND_VALUE_STATUS_FLAG      VARCHAR2(4)   ,
    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),
    DISTRIBUTION_TYPE             VARCHAR2(120) ,
    LAYER_COST_ID                 NUMBER(18, 0) ,
    TXFR_ADJ_POSTED_FLAG          VARCHAR2(4)   ,
    TRANSACTION_ID                NUMBER(18, 0)     NOT NULL,
    REC_TRXN_ID                   NUMBER(18, 0)     NOT NULL,
    DEP_TRXN_ID                   NUMBER(18, 0)     NOT NULL,
    COST_ELEMENT_ID               NUMBER(18, 0)     NOT NULL,
    EXPENSE_POOL_ID               NUMBER(18, 0)     NOT NULL,
    EFF_DATE                      TIMESTAMP(6)      NOT NULL,
    TRANSACTION_COST_ID           NUMBER(18, 0)     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,
    COST_DATE                     TIMESTAMP(6)  ,
    BASE_TXN_TYPE_ID              NUMBER(18, 0) ,
    COST_SOURCE                   VARCHAR2(120) ,
    COST_REFERENCE                VARCHAR2(400) ,
    COST_TRANSACTION_TYPE         VARCHAR2(40)  ,
    ADDITIONAL_PROCESSING_CODE    VARCHAR2(960) ,
    ABSORPTION_TYPE               VARCHAR2(120) ,
    QUANTITY                      NUMBER        ,
    UOM_CODE                      VARCHAR2(100) ,
    UNIT_COST                     NUMBER        ,
    CURRENCY_CODE                 VARCHAR2(120)     NOT NULL,
    ADJ_POSTED_FLAG               VARCHAR2(20)      NOT NULL,
    WO_COST_POSTED_FLAG           VARCHAR2(4)       NOT NULL,
    SVC_WIP_ADJ_POSTED_FLAG       VARCHAR2(4)   ,
    POSTED_FLAG                   VARCHAR2(20)  ,
    DISTRIBUTION_ID               NUMBER(18, 0) ,
    PERPAVG_COST_ID               NUMBER(18, 0) ,
    STD_COST_ID                   NUMBER(18, 0) ,
    ONHAND_VALUE                  NUMBER        ,
    ONHAND_QUANTITY               NUMBER        ,
    ONHAND_VALUE_STATUS_FLAG      VARCHAR2(4)   ,
    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),
    DISTRIBUTION_TYPE             VARCHAR2(120) ,
    CONSTRAINT pk_cst_layer_costs_s_gt PRIMARY KEY (LAYER_COST_ID, LAYER_COST_ID)
);
