@Override
    public List<ForeignKey<PermissionAppRecord, ?>> getReferences() {
        return Arrays.asList(Keys.PERMISSION_APP_USER_UUID, Keys.PERMISSION_APP_PERMISSION_ID);
    }
Create a <code>stroom.permission_app</code> table reference
stroom-security/stroom-security-impl-db-jooq/src/main/java/stroom/security/impl/db/jooq/tables/PermissionApp.java