<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./schema.xsd">
<changeset id="FS-2354_onboard_sarah_dovey:1" author="ozhovnuvatyi">
        <cypherquery>
            <![CDATA[
                MERGE (increment:IncrementId {nodeName: 'Profile'})
                    ON CREATE SET increment.id = 2
                    ON MATCH SET increment.id = increment.id + 1
                CREATE (profile:Profile {
                    brand: 'sme',
                    profileId: (increment.id-1),
                    profileType: 'AudienceProfile',
                    profileName: 'Sarah Dovey',
                    roles: ['audience'],
                    fullCatalogAccess: true,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-2354',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-2354'
                })
                WITH profile
                MATCH (v:Vendor {id: '*' }),(i:Identity {id:'23ac5d82-cb85-4863-8db6-c4155bdaacd8'})
                MERGE (profile)-[:HAS_ACCESS_TO]->(v)
                WITH profile,i
                MERGE(i)-[:HAS_PROFILE]->(profile)
            ]]>
        </cypherquery>
    </changeset>
</changelog>
