CREATE TABLE cmp_salary_batch_asg_info (
    ASSIGNMENT_ID              NUMBER(18, 0),
    SALARY_ASG_INFO_ID         NUMBER(18, 0),
    BATCH_INFO_ID              NUMBER(18, 0)    NOT NULL,
    PROCESS_MODE_CODE          VARCHAR2(120)    NOT NULL,
    PERSON_ID                  NUMBER(18, 0),
    ASSIGNMENT_TYPE            VARCHAR2(80) ,
    PAYROLL_ASSIGNMENT_ID      NUMBER(18, 0),
    PAYROLL_TERM_ID            NUMBER(18, 0),
    PAYROLL_RELATIONSHIP_ID    NUMBER(18, 0),
    POSTED_FLAG                VARCHAR2(120),
    ROLLBACK_FLAG              VARCHAR2(120),
    PROCESSED_FLAG             VARCHAR2(120),
    ERRORED_FLAG               VARCHAR2(120),
    POSTING_APPROVED           VARCHAR2(120),
    POSTING_REJECTED           VARCHAR2(120),
    ASSIGNMENT_OVN             NUMBER(9, 0) ,
    BATCH_ERROR_ID             NUMBER(18, 0),
    OBJECT_VERSION_NUMBER      NUMBER(9, 0)     NOT NULL,
    LAST_UPDATE_DATE           TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY            VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN          VARCHAR2(128),
    CREATED_BY                 VARCHAR2(256)    NOT NULL,
    CREATION_DATE              TIMESTAMP(6)     NOT NULL,
    ASSIGNMENT_ID              NUMBER(18, 0),
    SALARY_ASG_INFO_ID         NUMBER(18, 0),
    BATCH_INFO_ID              NUMBER(18, 0)    NOT NULL,
    PROCESS_MODE_CODE          VARCHAR2(120)    NOT NULL,
    PERSON_ID                  NUMBER(18, 0),
    ASSIGNMENT_TYPE            VARCHAR2(80) ,
    PAYROLL_ASSIGNMENT_ID      NUMBER(18, 0),
    PAYROLL_TERM_ID            NUMBER(18, 0),
    PAYROLL_RELATIONSHIP_ID    NUMBER(18, 0),
    POSTED_FLAG                VARCHAR2(120),
    ROLLBACK_FLAG              VARCHAR2(120),
    PROCESSED_FLAG             VARCHAR2(120),
    ERRORED_FLAG               VARCHAR2(120),
    POSTING_APPROVED           VARCHAR2(120),
    POSTING_REJECTED           VARCHAR2(120),
    ASSIGNMENT_OVN             NUMBER(9, 0) ,
    BATCH_ERROR_ID             NUMBER(18, 0),
    OBJECT_VERSION_NUMBER      NUMBER(9, 0)     NOT NULL,
    LAST_UPDATE_DATE           TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY            VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN          VARCHAR2(128),
    CREATED_BY                 VARCHAR2(256)    NOT NULL,
    CREATION_DATE              TIMESTAMP(6)     NOT NULL,
    CONSTRAINT pk_cmp_salary_batch_asg_info PRIMARY KEY (ASSIGNMENT_ID, SALARY_ASG_INFO_ID, ASSIGNMENT_ID, SALARY_ASG_INFO_ID)
);
