<?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-3725_onboard_cg_label: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: 'Hannah Gotkine',
                    roles: ['audience'],
                    fullCatalogAccess: false,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-3725',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-3725'
                })
                WITH profile
                MATCH (v1:Vendor {id: 790797 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v1)
                WITH profile
                CREATE (identity:Identity{
                    email: 'hannah.gotkine@sonymusic.com',
                    firstName: 'Hannah',
                    lastName: 'Gotkine',
                    name: 'Hannah Gotkine',
                    id:apoc.create.uuid(),
                    active: 'Y',
                    createdAt: datetime(),
                    defaultBrand: 'sme',
                    localization: 'en',
                    numberFormat: 'us',
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-3725',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-3725',
                    userTypes: ['label']
                })
                MERGE (identity)-[:HAS_PROFILE]->(profile)
            ]]>
        </query>
    </changeset>
    <changeset id="FS-3725_onboard_cg_label:2" author="ozhovnuvatyi">
        <query>
            <![CDATA[
                MATCH (i:Identity {id: '18e2493b-3799-46fa-a991-fb20927afe53' })-[:HAS_PROFILE]-(profile:Profile {profileType: "AudienceProfile"}),
                    (v1:Vendor {id: 790797 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v1)
            ]]>
        </query>
    </changeset>
    <changeset id="FS-3725_onboard_cg_label:3" author="ozhovnuvatyi">
        <query>
            <![CDATA[
                MATCH (i:Identity {id: 'fd313139-f5b2-4180-bb41-e53d334a4b83' })-[:HAS_PROFILE]-(profile:Profile {profileType: "AudienceProfile"}),
                    (v1:Vendor {id: 790797 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v1)
            ]]>
        </query>
    </changeset>
    <changeset id="FS-3725_onboard_cg_label: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: 'Natalie Gray',
                    roles: ['audience'],
                    fullCatalogAccess: false,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-3725',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-3725'
                })
                WITH profile
                MATCH (i:Identity {id: '7ec583cb-c8bc-4dd0-9852-fbe74e29758b' }),
                    (v1:Vendor {id: 790797 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v1)
                WITH profile,i
                MERGE (i)-[:HAS_PROFILE]->(profile)
            ]]>
        </query>
    </changeset>
    <changeset id="FS-3725_onboard_cg_label: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: 'Philip Connolly',
                    roles: ['audience'],
                    fullCatalogAccess: false,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-3725',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-3725'
                })
                WITH profile
                MATCH (i:Identity {id: '2c69fc57-d81a-469f-9552-164160e5b341' }),
                    (v1:Vendor {id: 790797 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v1)
                WITH profile,i
                MERGE (i)-[:HAS_PROFILE]->(profile)
            ]]>
        </query>
    </changeset>
    <changeset id="FS-3725_onboard_cg_label:6" 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: 'Joanna Kalli',
                    roles: ['audience'],
                    fullCatalogAccess: false,
                    uuid: apoc.create.uuid(),
                    createdAt: datetime(),
                    lastModifiedAt: datetime(),
                    createdBy: 'https://theorchard.atlassian.net/browse/FS-3725',
                    updatedBy: 'https://theorchard.atlassian.net/browse/FS-3725'
                })
                WITH profile
                MATCH (i:Identity {id: 'f7177834-c74e-4e3d-be18-6d026d492903' }),
                    (v1:Vendor {id: 790797 })
                MERGE (profile)-[:HAS_ACCESS_TO]->(v1)
                WITH profile,i
                MERGE (i)-[:HAS_PROFILE]->(profile)
            ]]>
        </query>
    </changeset>
</changelog>
