<?xml version='1.0' encoding='UTF-8'?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <changeset id='NO-TICKET_add_kath_turner_content:1' author='rshield'>
        <cypherquery>
            <![CDATA[
                MATCH (identity:Identity {email: 'kturner1@theorchard.com'})
                    MERGE (increment:IncrementId {nodeName: 'Profile'})
                        ON CREATE SET increment.id = 2
                        ON MATCH SET increment.id = increment.id + 1
                    CREATE (profile:Profile {
                        profileId: (increment.id-1),
                        profileType: 'ContentProfile',
                        profileName: 'Kath Turner',
                        fullCatalogAccess: true,
                        roles = ['manage_nr_repertoire', 'review_digital_audio', 'view_orchard_sound_recording', 'manage_nr_ownership'],
                        uuid: apoc.create.uuid()
                    })
                    MERGE (identity)-[:HAS_PROFILE]->(profile)
                    WITH profile
                    MATCH (v:Vendor {id: '*'})
                    MERGE (profile)-[:HAS_ACCESS_TO]->(v)
            ]]>
        </cypherquery>
    </changeset>
    <changeset id='NO-TICKET_add_kath_turner_content:2' author='rshield'>
        <cypherquery>
            <![CDATA[
                MATCH (identity:Identity {email: 'kturner1@theorchard.com'})
                    MERGE (increment:IncrementId {nodeName: 'Profile'})
                        ON CREATE SET increment.id = 2
                        ON MATCH SET increment.id = increment.id + 1
                    CREATE (profile:Profile {
                        profileId: (increment.id-1),
                        profileType: 'DistributionProfile',
                        profileName: 'Kath Turner',
                        roles: ['manage_nr_deliveries', 'deliver_physical_audio'],
                        uuid: apoc.create.uuid(),
                        fullCatalogAccess: true
                    })
                    MERGE (identity)-[:HAS_PROFILE]->(profile)
                    WITH profile
                    MATCH (v:Vendor {id: '*'})
                    MERGE (profile)-[:HAS_ACCESS_TO]->(v)
            ]]>
        </cypherquery>
    </changeset>
</changelog>
