CREATE TABLE cmp_cwb_plan_definitions (
    PLAN_DEFINITION_ID       NUMBER(18, 0),
    PLAN_ID                  NUMBER(18, 0)    NOT NULL,
    PERIOD_ID                NUMBER(18, 0)    NOT NULL,
    DEFINITION_TYPE          VARCHAR2(120)    NOT NULL,
    COMPONENT_ID             NUMBER(18, 0)    NOT NULL,
    POOL_ID                  NUMBER(18, 0),
    POOL_COMPONENT_ID        NUMBER(18, 0),
    BUSINESS_GROUP_ID        NUMBER(18, 0)    NOT NULL,
    STATUS_CODE              VARCHAR2(120),
    CORPORATE_CURRENCY       VARCHAR2(120),
    SYSTEM_ORDER_NUM         NUMBER(1, 0) ,
    ORDER_NUM                NUMBER       ,
    PLAN_COMPONENT_COUNT     NUMBER(1, 0) ,
    APPROVAL_MODE            VARCHAR2(120),
    SUBMIT_MODE              VARCHAR2(120),
    BUDGETING_STYLE          VARCHAR2(120),
    POST_AS_SALARY_FLAG      VARCHAR2(4)  ,
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     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),
    WITHDRAW_MODE            VARCHAR2(120),
    PLAN_DEFINITION_ID       NUMBER(18, 0),
    PLAN_ID                  NUMBER(18, 0)    NOT NULL,
    PERIOD_ID                NUMBER(18, 0)    NOT NULL,
    DEFINITION_TYPE          VARCHAR2(120)    NOT NULL,
    COMPONENT_ID             NUMBER(18, 0)    NOT NULL,
    POOL_ID                  NUMBER(18, 0),
    POOL_COMPONENT_ID        NUMBER(18, 0),
    BUSINESS_GROUP_ID        NUMBER(18, 0)    NOT NULL,
    STATUS_CODE              VARCHAR2(120),
    CORPORATE_CURRENCY       VARCHAR2(120),
    SYSTEM_ORDER_NUM         NUMBER(1, 0) ,
    ORDER_NUM                NUMBER       ,
    PLAN_COMPONENT_COUNT     NUMBER(1, 0) ,
    APPROVAL_MODE            VARCHAR2(120),
    SUBMIT_MODE              VARCHAR2(120),
    BUDGETING_STYLE          VARCHAR2(120),
    POST_AS_SALARY_FLAG      VARCHAR2(4)  ,
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     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),
    WITHDRAW_MODE            VARCHAR2(120),
    CONSTRAINT pk_cmp_cwb_plan_definitions PRIMARY KEY (PLAN_DEFINITION_ID, PLAN_DEFINITION_ID)
);
