CREATE TABLE hns_persons (
    TASK_ID                   NUMBER(18, 0)    NOT NULL,
    EMPLOYEE_ID               NUMBER(18, 0)    NOT NULL,
    PERSON_ASSIGN_ID          NUMBER(18, 0),
    ROLE_CODE                 VARCHAR2(120)    NOT NULL,
    TARGET_COMPLETION_DATE    TIMESTAMP(6)     NOT NULL,
    ACTUAL_COMPLETION_DATE    TIMESTAMP(6) ,
    COMPLETED_FLAG            VARCHAR2(4)  ,
    DELETED_FLAG              VARCHAR2(4)  ,
    TASK_TYPE_CODE            VARCHAR2(120)    NOT NULL,
    PERSON_ID                 NUMBER(18, 0),
    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),
    OBJECT_VERSION_NUMBER     NUMBER(9, 0)     NOT NULL,
    RESULT_CODE               VARCHAR2(120),
    ACTION_REQUIRED_FLAG      VARCHAR2(4)  ,
    TASK_ID                   NUMBER(18, 0)    NOT NULL,
    EMPLOYEE_ID               NUMBER(18, 0)    NOT NULL,
    ROLE_CODE                 VARCHAR2(120)    NOT NULL,
    TARGET_COMPLETION_DATE    TIMESTAMP(6)     NOT NULL,
    ACTUAL_COMPLETION_DATE    TIMESTAMP(6) ,
    COMPLETED_FLAG            VARCHAR2(4)  ,
    DELETED_FLAG              VARCHAR2(4)  ,
    TASK_TYPE_CODE            VARCHAR2(120)    NOT NULL,
    PERSON_ID                 NUMBER(18, 0),
    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),
    OBJECT_VERSION_NUMBER     NUMBER(9, 0)     NOT NULL,
    RESULT_CODE               VARCHAR2(120),
    ACTION_REQUIRED_FLAG      VARCHAR2(4)  ,
    PERSON_ASSIGN_ID          NUMBER(18, 0),
    CONSTRAINT pk_hns_persons PRIMARY KEY (PERSON_ID, PERSON_ID)
);
