HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/magento.bikenow.co/vendor/magento/module-vault/etc/db_schema.xml
<?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="vault_payment_token" resource="default" engine="innodb" comment="Vault tokens of payment">
        <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true"
                comment="Entity ID"/>
        <column xsi:type="int" name="customer_id" unsigned="true" nullable="true" identity="false"
                comment="Customer ID"/>
        <column xsi:type="varchar" name="public_hash" nullable="false" length="128"
                comment="Hash code for using on frontend"/>
        <column xsi:type="varchar" name="payment_method_code" nullable="false" length="128"
                comment="Payment method code"/>
        <column xsi:type="varchar" name="type" nullable="false" length="128" comment="Type"/>
        <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
                comment="Created At"/>
        <column xsi:type="timestamp" name="expires_at" on_update="false" nullable="true" comment="Expires At"/>
        <column xsi:type="varchar" name="gateway_token" nullable="false" length="255" comment="Gateway Token"/>
        <column xsi:type="text" name="details" nullable="true" comment="Details"/>
        <column xsi:type="boolean" name="is_active" nullable="false" default="true"/>
        <column xsi:type="boolean" name="is_visible" nullable="false" default="true"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="entity_id"/>
        </constraint>
        <constraint xsi:type="foreign" referenceId="VAULT_PAYMENT_TOKEN_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID"
                    table="vault_payment_token" column="customer_id" referenceTable="customer_entity"
                    referenceColumn="entity_id" onDelete="CASCADE"/>
        <constraint xsi:type="unique" referenceId="VAULT_PAYMENT_TOKEN_PAYMENT_METHOD_CODE_CSTR_ID_GATEWAY_TOKEN">
            <column name="payment_method_code"/>
            <column name="customer_id"/>
            <column name="gateway_token"/>
        </constraint>
        <constraint xsi:type="unique" referenceId="VAULT_PAYMENT_TOKEN_PUBLIC_HASH">
            <column name="public_hash"/>
        </constraint>
    </table>
    <table name="vault_payment_token_order_payment_link" resource="default" engine="innodb"
           comment="Order payments to vault token">
        <column xsi:type="int" name="order_payment_id" unsigned="true" nullable="false" identity="false"
                comment="Order payment ID"/>
        <column xsi:type="int" name="payment_token_id" unsigned="true" nullable="false" identity="false"
                comment="Payment token ID"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="order_payment_id"/>
            <column name="payment_token_id"/>
        </constraint>
        <constraint xsi:type="foreign" referenceId="FK_CF37B9D854256534BE23C818F6291CA2"
                    table="vault_payment_token_order_payment_link" column="order_payment_id"
                    referenceTable="sales_order_payment" referenceColumn="entity_id" onDelete="CASCADE"/>
        <constraint xsi:type="foreign" referenceId="FK_4ED894655446D385894580BECA993862"
                    table="vault_payment_token_order_payment_link" column="payment_token_id"
                    referenceTable="vault_payment_token" referenceColumn="entity_id" onDelete="CASCADE"/>
    </table>
</schema>