<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
    <table name="login_as_customer" resource="default" engine="innodb" comment="Magento Login as Customer Table">
        <column xsi:type="varchar" name="secret" nullable="false" length="64" comment="Login Secret"/>
        <column xsi:type="int" name="customer_id" nullable="false" comment="Customer ID"/>
        <column xsi:type="int" name="admin_id" nullable="false" comment="Admin ID"/>
        <column xsi:type="timestamp" name="created_at" comment="Creation Time"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="secret"/>
        </constraint>
        <index referenceId="LOGIN_AS_CUSTOMER_CREATED_AT" indexType="btree">
            <column name="created_at"/>
        </index>
    </table>
</schema>
