<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./schema.xsd">
<changeset id="FS-2059_add_IM_CMG_fansifter_users:1" author="durukov">
        <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: 'Olivia Wilk',
                    roles: ['audience'],
                    fullCatalogAccess: false,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-2059',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-2059'
                })
                WITH profile
                MATCH (v:Vendor {id: 34536 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v)
                WITH profile
                CREATE (identity:Identity{
                    email: 'olivia.wilk@sonymusic.com',
                    firstName: 'Olivia',
                    lastName: 'Wilk',
                    name:'Olivia Wilk',
                    id:apoc.create.uuid(),
                    active: 'Y',
                    createdAt: datetime(),
                    defaultBrand: 'sme',
                    localization: 'en',
                    numberFormat: 'us',
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-2059',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-2059',
                    userTypes: ['label']
                })
                MERGE(identity)-[:HAS_PROFILE]->(profile)
            ]]>
        </cypherquery>
    </changeset>
<changeset id="FS-2059_add_IM_CMG_fansifter_users:2" author="durukov">
        <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: 'Keri-Ann Dolan',
                    roles: ['audience'],
                    fullCatalogAccess: false,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-2059',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-2059'
                })
                WITH profile
                MATCH (v:Vendor {id: 34536 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v)
                WITH profile
                CREATE (identity:Identity{
                    email: 'keriann.dolan@sonymusic.com',
                    firstName: 'Keri-Ann',
                    lastName: 'Dolan',
                    name:'Keri-Ann Dolan',
                    id:apoc.create.uuid(),
                    active: 'Y',
                    createdAt: datetime(),
                    defaultBrand: 'sme',
                    localization: 'en',
                    numberFormat: 'us',
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-2059',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-2059',
                    userTypes: ['label']
                })
                MERGE(identity)-[:HAS_PROFILE]->(profile)
            ]]>
        </cypherquery>
    </changeset>
<changeset id="FS-2059_add_IM_CMG_fansifter_users:3" author="durukov">
        <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: 'Kyle Sherwin',
                    roles: ['audience'],
                    fullCatalogAccess: false,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-2059',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-2059'
                })
                WITH profile
                MATCH (v:Vendor {id: 34514 }),(i:Identity {id:'ef08e90d-4484-498f-b163-4f3d76d67fc9'})
                MERGE (profile)-[:HAS_ACCESS_TO]->(v)
                WITH profile,i
                MERGE(i)-[:HAS_PROFILE]->(profile)
            ]]>
        </cypherquery>
    </changeset>
</changelog>
