<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://www.liquigraph.org/schema/1.0/liquigraph.xsd">
    <changeset id="FS-127_grant-full-catalog-access-to-audience-profile:1" author="durukov" run-on-change="true">
        <query>
            <![CDATA[
                MATCH (i:Identity)-[:HAS_PROFILE]->(p:Profile {profileType: "AudienceProfile"})
                WHERE i.email IN [
                    "aruhlov@theorchard.com",
                    "bburton@theorchard.com",
                    "akozlov@theorchard.com",
                    "durukov@theorchard.com",
                    "rbomberg@theorchard.com",
                    "vkalichonak@theorchard.com",
                    "alaan@theorchard.com",
                    "owherry@theorchard.com",
                    "aglassett@theorchard.com"
                ]
                SET p.fullCatalogAccess = true, p.lastModifiedBy = 'database/FS-127_grant-full-catalog-access-to-audience-profile', p.lastModifiedAt = datetime()
                WITH p
                MATCH (v:Vendor {id: '*'})
                MERGE (p)-[access:HAS_ACCESS_TO]->(v)
                SET access.createdAt = datetime();
            ]]>
        </query>
    </changeset>
</changelog>
