CREATE TABLE gtg_sc_acn_security (
    ID                       NUMBER(18, 0),
    ACCESSOR_TYPE            VARCHAR2(80)     NOT NULL,
    ACCESSOR_ID              VARCHAR2(400)    NOT NULL,
    SECURABLE_TYPE           VARCHAR2(400)    NOT NULL,
    SECURABLE_ID             NUMBER(19, 0)    NOT NULL,
    IS_OWNER                 NUMBER(9, 0)     NOT NULL,
    IS_EDITOR                NUMBER(9, 0)     NOT NULL,
    IS_VIEWER                NUMBER(9, 0)     NOT NULL,
    IS_ROLE_MANAGER          NUMBER(9, 0)     NOT NULL,
    IS_CERTIFIER             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),
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    ID                       NUMBER(18, 0),
    ACCESSOR_TYPE            VARCHAR2(80)     NOT NULL,
    ACCESSOR_ID              VARCHAR2(400)    NOT NULL,
    SECURABLE_TYPE           VARCHAR2(400)    NOT NULL,
    SECURABLE_ID             NUMBER(19, 0)    NOT NULL,
    IS_OWNER                 NUMBER(9, 0)     NOT NULL,
    IS_EDITOR                NUMBER(9, 0)     NOT NULL,
    IS_VIEWER                NUMBER(9, 0)     NOT NULL,
    IS_ROLE_MANAGER          NUMBER(9, 0)     NOT NULL,
    IS_CERTIFIER             NUMBER(9, 0)     NOT NULL,
    IS_ORPHAN                NUMBER(9, 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,
    CONSTRAINT pk_gtg_sc_acn_security PRIMARY KEY (ID, ID)
);
