<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <changeset id="add_distribution_content_profile:1" author="anavalu" run-on-change="true">
        <cypherquery>
            <![CDATA[
                MATCH (identity:Identity {email: 'anavalu@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: 'Aarti Navalu',
                    uuid: apoc.create.uuid(),
                    roles: ['manage_nr_deliveries'],
                    fullCatalogAccess: true
                })
                MERGE (identity)-[:HAS_PROFILE]->(profile)
                WITH profile
                MATCH (v:Vendor {id: '*'})
                MERGE (profile)-[:HAS_ACCESS_TO]->(v)
            ]]>
        </cypherquery>
    </changeset>
  
    <changeset id="add_distribution_content_profile:2" author="anavalu" run-on-change="true">
        <cypherquery>
            <![CDATA[
                MATCH (identity:Identity {email: 'anavalu@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: 'Aarti Navalu',
                    uuid: apoc.create.uuid(),
                    roles: ['manage_nr_repertoire'],
                    fullCatalogAccess: true
                })
                MERGE (identity)-[:HAS_PROFILE]->(profile)
                WITH profile
                MATCH (v:Vendor {id: '*'})
                MERGE (profile)-[:HAS_ACCESS_TO]->(v)
            ]]>
        </cypherquery>
    </changeset>

    <changeset id="add_distribution_content_profile:3" author="anavalu" run-on-change="true">
        <cypherquery>
            <![CDATA[
                MATCH (identity:Identity {email: 'aduduskar@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: 'Apurva Duduskar',
                    uuid: apoc.create.uuid(),
                    roles: ['manage_nr_deliveries'],
                    fullCatalogAccess: true
                })
                MERGE (identity)-[:HAS_PROFILE]->(profile)
                WITH profile
                MATCH (v:Vendor {id: '*'})
                MERGE (profile)-[:HAS_ACCESS_TO]->(v)
            ]]>
        </cypherquery>
    </changeset>
  
    <changeset id="add_distribution_content_profile:4" author="anavalu" run-on-change="true">
        <cypherquery>
            <![CDATA[
                MATCH (identity:Identity {email: 'aduduskar@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: 'Apurva Duduskar',
                    uuid: apoc.create.uuid(),
                    roles: ['manage_nr_repertoire'],
                    fullCatalogAccess: true
                })
                MERGE (identity)-[:HAS_PROFILE]->(profile)
                WITH profile
                MATCH (v:Vendor {id: '*'})
                MERGE (profile)-[:HAS_ACCESS_TO]->(v)
            ]]>
        </cypherquery>
    </changeset>
</changelog>
