<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./schema.xsd">
<changeset id="FS-2251_add_new_sme_uk_admin: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: 'Ania Wojnowska',
                    roles: ['audience'],
                    fullCatalogAccess: false,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-2251',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-2251'
                })
                WITH profile
                MATCH (v:Vendor {id: 34588 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v)
                WITH profile
                CREATE (identity:Identity{
                    email: 'ania.wojnowska@sonymusic.com',
                    firstName: 'Ania',
                    lastName: 'Wojnowska',
                    name: 'Ania Wojnowska',
                    id:apoc.create.uuid(),
                    active: 'Y',
                    createdAt: datetime(),
                    defaultBrand: 'sme',
                    localization: 'en',
                    numberFormat: 'us',
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-2251',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-2251',
                    userTypes: ['label']
                })
                MERGE(identity)-[:HAS_PROFILE]->(profile)
            ]]>
        </cypherquery>
</changeset>
</changelog>
