<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <changeset id="NR-1785_add_content_profile_chantal_scott:1" author="jmarais">
        <cypherquery>
            MATCH (identity:Identity {id: '8eb2a2fc-6b65-4bb4-b401-ceebaaec7b8f'})
            MERGE (increment:IncrementId {nodeName: 'Profile'})
                ON MATCH SET increment.id = increment.id + 1
            CREATE (profile:Profile {
                profileId: (increment.id-1),
                profileType: 'ContentProfile',
                profileName: 'Chantal Scott ContentProfile',
                uuid: apoc.create.uuid(),
                roles: ['manage_nr_repertoire', 'manage_nr_ownership', 'review_digital_audio', 'view_orchard_sound_recording'],
                fullCatalogAccess: true
            })
            MERGE (identity)-[:HAS_PROFILE]->(profile)
            WITH profile
            MATCH (v:Vendor {id: '*'})
            MERGE (profile)-[:HAS_ACCESS_TO]->(v)
            RETURN profile.profileId
        </cypherquery>
    </changeset>
</changelog>
