<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://florent.biville.net/liquigraph/schema/1.0/liquigraph.xsd">
    <changeset id="DOC-41-create_profile:1" author="j0shua">
        <query>
            <![CDATA[
                MATCH (identity:Identity {email: 'gquintino@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: 'DocumentsProfile',
                    profileName: 'DocumentsProfile',
                    roles: ['payee_management'],
                    uuid: apoc.create.uuid()
                })
                MERGE (identity)-[:HAS_PROFILE]->(profile)
            ]]>
        </query>
    </changeset>
</changelog>
