CREATE TABLE cse_cost_transactions (
    COST_TRANSACTION_ID           NUMBER(18, 0) ,
    OBJECT_VERSION_NUMBER         NUMBER(9, 0)      NOT NULL,
    SOURCE_SYSTEM_CODE            VARCHAR2(120) ,
    TRANSACTION_TYPE_CODE         VARCHAR2(120)     NOT NULL,
    SOURCE_TRANSACTION_ID         NUMBER(18, 0)     NOT NULL,
    PARENT_TRANSACTION_ID         NUMBER(18, 0) ,
    ORGANIZATION_ID               NUMBER(18, 0) ,
    FA_BOOK_TYPE_CODE             VARCHAR2(120) ,
    COSTING_SOURCE_CODE           VARCHAR2(12)  ,
    TRANSACTION_QUANTITY          NUMBER            NOT NULL,
    TRANSACTION_UOM_CODE          VARCHAR2(12)      NOT NULL,
    PRIMARY_QUANTITY              NUMBER        ,
    PRIMARY_UOM_CODE              VARCHAR2(12)  ,
    WORK_ORDER_ID                 NUMBER(18, 0) ,
    WORK_ORDER_OPERATION_ID       NUMBER(18, 0) ,
    PO_HEADER_ID                  NUMBER(18, 0) ,
    PO_LINE_ID                    NUMBER(18, 0) ,
    PO_LINE_LOCATION_ID           NUMBER(18, 0) ,
    PO_DISTRIBUTION_ID            NUMBER(18, 0) ,
    PROJECT_ID                    NUMBER(18, 0) ,
    TASK_ID                       NUMBER(18, 0) ,
    DELIVER_TO_PERSON_ID          NUMBER(18, 0) ,
    TRANSACTION_VALUE             NUMBER        ,
    UNIT_COST                     NUMBER        ,
    CURRENCY_CODE                 VARCHAR2(80)  ,
    COST_COLLECTED_FLAG           VARCHAR2(4)       NOT NULL,
    INVOICE_COLLECTED_FLAG        VARCHAR2(4)       NOT NULL,
    ENTITLEMENT_PROCESSED_FLAG    VARCHAR2(4)       NOT NULL,
    FA_INTERFACED_FLAG            VARCHAR2(4)       NOT NULL,
    INTERFACE_STATUS_CODE         VARCHAR2(120) ,
    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),
    COST_TRANSACTION_ID           NUMBER(18, 0) ,
    OBJECT_VERSION_NUMBER         NUMBER(9, 0)      NOT NULL,
    TRANSACTION_TYPE_CODE         VARCHAR2(120)     NOT NULL,
    SOURCE_TRANSACTION_ID         NUMBER(18, 0)     NOT NULL,
    TRANSACTION_QUANTITY          NUMBER            NOT NULL,
    TRANSACTION_UOM_CODE          VARCHAR2(12)      NOT NULL,
    WORK_ORDER_ID                 NUMBER(18, 0) ,
    WORK_ORDER_OPERATION_ID       NUMBER(18, 0) ,
    TRANSACTION_VALUE             NUMBER        ,
    UNIT_COST                     NUMBER        ,
    CURRENCY_CODE                 VARCHAR2(80)  ,
    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),
    SOURCE_SYSTEM_CODE            VARCHAR2(120) ,
    PARENT_TRANSACTION_ID         NUMBER(18, 0) ,
    COSTING_SOURCE_CODE           VARCHAR2(12)  ,
    PRIMARY_QUANTITY              NUMBER        ,
    PRIMARY_UOM_CODE              VARCHAR2(12)  ,
    PO_HEADER_ID                  NUMBER(18, 0) ,
    PO_LINE_ID                    NUMBER(18, 0) ,
    PO_LINE_LOCATION_ID           NUMBER(18, 0) ,
    PO_DISTRIBUTION_ID            NUMBER(18, 0) ,
    COST_COLLECTED_FLAG           VARCHAR2(4)       NOT NULL,
    INVOICE_COLLECTED_FLAG        VARCHAR2(4)       NOT NULL,
    ENTITLEMENT_PROCESSED_FLAG    VARCHAR2(4)       NOT NULL,
    FA_INTERFACED_FLAG            VARCHAR2(4)       NOT NULL,
    INTERFACE_STATUS_CODE         VARCHAR2(120) ,
    ORGANIZATION_ID               NUMBER(18, 0) ,
    FA_BOOK_TYPE_CODE             VARCHAR2(120) ,
    DELIVER_TO_PERSON_ID          NUMBER(18, 0) ,
    PROJECT_ID                    NUMBER(18, 0) ,
    TASK_ID                       NUMBER(18, 0) ,
    CONSTRAINT pk_cse_cost_transactions PRIMARY KEY (COST_TRANSACTION_ID, COST_TRANSACTION_ID)
);
