<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.liquigraph.org/schema/1.0/liquigraph.xsd">
    <changeset id="FS-3145_new_rca_uk_users:1" author="ozhovnuvatyi">
        <query>
            <![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: 'Eloise Bernard',
                    roles: ['audience'],
                    fullCatalogAccess: false,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-3145',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-3145'
                })
                WITH profile
                MATCH (i:Identity {id: 'd5eee769-80ac-4a69-b779-c7a1b938b79f' }),
                    (v1:Vendor {id: 778093 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v1)
                WITH profile,i
                MERGE (i)-[:HAS_PROFILE]->(profile)
            ]]>
        </query>
    </changeset>
    <changeset id="FS-3145_new_rca_uk_users:2" author="ozhovnuvatyi">
        <query>
            <![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: 'Natika Edwards',
                    roles: ['audience'],
                    fullCatalogAccess: false,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-3145',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-3145'
                })
                WITH profile
                MATCH (v1:Vendor {id: 778093 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v1)
                WITH profile
                CREATE (identity:Identity{
                    email: 'natika.edward@sonymusic.com',
                    firstName: 'Natika',
                    lastName: 'Edwards',
                    name: 'Natika Edwards',
                    id:apoc.create.uuid(),
                    active: 'Y',
                    createdAt: datetime(),
                    defaultBrand: 'sme',
                    localization: 'en',
                    numberFormat: 'us',
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-3145',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-3145',
                    userTypes: ['label']
                })
                MERGE (identity)-[:HAS_PROFILE]->(profile)
            ]]>
        </query>
    </changeset>
    <changeset id="FS-3145_new_rca_uk_users:3" author="ozhovnuvatyi">
        <query>
            <![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: 'Jack Gregory',
                    roles: ['audience'],
                    fullCatalogAccess: false,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-3145',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-3145'
                })
                WITH profile
                MATCH (v1:Vendor {id: 778093 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v1)
                WITH profile
                CREATE (identity:Identity{
                    email: 'jack.gregory@sonymusic.com',
                    firstName: 'Jack',
                    lastName: 'Gregory',
                    name: 'Jack Gregory',
                    id:apoc.create.uuid(),
                    active: 'Y',
                    createdAt: datetime(),
                    defaultBrand: 'sme',
                    localization: 'en',
                    numberFormat: 'us',
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-3145',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-3145',
                    userTypes: ['label']
                })
                MERGE (identity)-[:HAS_PROFILE]->(profile)
            ]]>
        </query>
    </changeset>
    <changeset id="FS-3145_new_rca_uk_users:4" author="ozhovnuvatyi">
        <query>
            <![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: 'Alex Bean',
                    roles: ['audience'],
                    fullCatalogAccess: false,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-3145',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-3145'
                })
                WITH profile
                MATCH (v1:Vendor {id: 778093 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v1)
                WITH profile
                CREATE (identity:Identity{
                    email: 'alex.bean@sonymusic.com',
                    firstName: 'Alex',
                    lastName: 'Bean',
                    name: 'Alex Bean',
                    id:apoc.create.uuid(),
                    active: 'Y',
                    createdAt: datetime(),
                    defaultBrand: 'sme',
                    localization: 'en',
                    numberFormat: 'us',
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-3145',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-3145',
                    userTypes: ['label']
                })
                MERGE (identity)-[:HAS_PROFILE]->(profile)
            ]]>
        </query>
    </changeset>
    <changeset id="FS-3145_new_rca_uk_users:5" author="ozhovnuvatyi">
        <query>
            <![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: 'William Stevens',
                    roles: ['audience'],
                    fullCatalogAccess: false,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-3145',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-3145'
                })
                WITH profile
                MATCH (i:Identity {id: '0cc5ca6d-0a75-444b-ad47-46d4dba873a7' }),
                    (v1:Vendor {id: 778093 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v1)
                WITH profile,i
                MERGE (i)-[:HAS_PROFILE]->(profile)
            ]]>
        </query>
    </changeset>
</changelog>
