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-paypal/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="paypal_billing_agreement" resource="default" engine="innodb" comment="Sales Billing Agreement">
        <column xsi:type="int" name="agreement_id" unsigned="true" nullable="false" identity="true"
                comment="Agreement ID"/>
        <column xsi:type="int" name="customer_id" unsigned="true" nullable="false" identity="false"
                comment="Customer ID"/>
        <column xsi:type="varchar" name="method_code" nullable="false" length="32" comment="Method Code"/>
        <column xsi:type="varchar" name="reference_id" nullable="false" length="32" comment="Reference ID"/>
        <column xsi:type="varchar" name="status" nullable="false" length="20" comment="Status"/>
        <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
                comment="Created At"/>
        <column xsi:type="timestamp" name="updated_at" on_update="false" nullable="true" comment="Updated At"/>
        <column xsi:type="smallint" name="store_id" unsigned="true" nullable="true" identity="false"
                comment="Store ID"/>
        <column xsi:type="varchar" name="agreement_label" nullable="true" length="255" comment="Agreement Label"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="agreement_id"/>
        </constraint>
        <constraint xsi:type="foreign" referenceId="PAYPAL_BILLING_AGREEMENT_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID"
                    table="paypal_billing_agreement" column="customer_id" referenceTable="customer_entity"
                    referenceColumn="entity_id" onDelete="CASCADE"/>
        <constraint xsi:type="foreign" referenceId="PAYPAL_BILLING_AGREEMENT_STORE_ID_STORE_STORE_ID"
                    table="paypal_billing_agreement" column="store_id" referenceTable="store" referenceColumn="store_id"
                    onDelete="SET NULL"/>
        <index referenceId="PAYPAL_BILLING_AGREEMENT_CUSTOMER_ID" indexType="btree">
            <column name="customer_id"/>
        </index>
        <index referenceId="PAYPAL_BILLING_AGREEMENT_STORE_ID" indexType="btree">
            <column name="store_id"/>
        </index>
    </table>
    <table name="paypal_billing_agreement_order" resource="default" engine="innodb"
           comment="Sales Billing Agreement Order">
        <column xsi:type="int" name="agreement_id" unsigned="true" nullable="false" identity="false"
                comment="Agreement ID"/>
        <column xsi:type="int" name="order_id" unsigned="true" nullable="false" identity="false"
                comment="Order ID"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="agreement_id"/>
            <column name="order_id"/>
        </constraint>
        <constraint xsi:type="foreign" referenceId="PAYPAL_BILLING_AGRT_ORDER_AGRT_ID_PAYPAL_BILLING_AGRT_AGRT_ID"
                    table="paypal_billing_agreement_order" column="agreement_id"
                    referenceTable="paypal_billing_agreement" referenceColumn="agreement_id" onDelete="CASCADE"/>
        <constraint xsi:type="foreign" referenceId="PAYPAL_BILLING_AGREEMENT_ORDER_ORDER_ID_SALES_ORDER_ENTITY_ID"
                    table="paypal_billing_agreement_order" column="order_id" referenceTable="sales_order"
                    referenceColumn="entity_id" onDelete="CASCADE"/>
        <index referenceId="PAYPAL_BILLING_AGREEMENT_ORDER_ORDER_ID" indexType="btree">
            <column name="order_id"/>
        </index>
    </table>
    <table name="paypal_settlement_report" resource="default" engine="innodb" comment="Paypal Settlement Report Table">
        <column xsi:type="int" name="report_id" unsigned="true" nullable="false" identity="true"
                comment="Report ID"/>
        <column xsi:type="date" name="report_date" comment="Report Date"/>
        <column xsi:type="varchar" name="account_id" nullable="true" length="64" comment="Account ID"/>
        <column xsi:type="varchar" name="filename" nullable="true" length="24" comment="Filename"/>
        <column xsi:type="timestamp" name="last_modified" on_update="false" nullable="true" comment="Last Modified"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="report_id"/>
        </constraint>
        <constraint xsi:type="unique" referenceId="PAYPAL_SETTLEMENT_REPORT_REPORT_DATE_ACCOUNT_ID">
            <column name="report_date"/>
            <column name="account_id"/>
        </constraint>
    </table>
    <table name="paypal_settlement_report_row" resource="default" engine="innodb"
           comment="Paypal Settlement Report Row Table">
        <column xsi:type="int" name="row_id" unsigned="true" nullable="false" identity="true"
                comment="Row ID"/>
        <column xsi:type="int" name="report_id" unsigned="true" nullable="false" identity="false"
                comment="Report ID"/>
        <column xsi:type="varchar" name="transaction_id" nullable="true" length="19" comment="Transaction ID"/>
        <column xsi:type="varchar" name="invoice_id" nullable="true" length="127" comment="Invoice ID"/>
        <column xsi:type="varchar" name="paypal_reference_id" nullable="true" length="19"
                comment="Paypal Reference ID"/>
        <column xsi:type="varchar" name="paypal_reference_id_type" nullable="true" length="3"
                comment="Paypal Reference ID Type"/>
        <column xsi:type="varchar" name="transaction_event_code" nullable="true" length="5"
                comment="Transaction Event Code"/>
        <column xsi:type="timestamp" name="transaction_initiation_date" on_update="false" nullable="true"
                comment="Transaction Initiation Date"/>
        <column xsi:type="timestamp" name="transaction_completion_date" on_update="false" nullable="true"
                comment="Transaction Completion Date"/>
        <column xsi:type="varchar" name="transaction_debit_or_credit" nullable="false" length="2" default="CR"
                comment="Transaction Debit Or Credit"/>
        <column xsi:type="decimal" name="gross_transaction_amount" scale="6" precision="20" unsigned="false"
                nullable="false" default="0" comment="Gross Transaction Amount"/>
        <column xsi:type="varchar" name="gross_transaction_currency" nullable="true" length="3"
                comment="Gross Transaction Currency"/>
        <column xsi:type="varchar" name="fee_debit_or_credit" nullable="true" length="2" comment="Fee Debit Or Credit"/>
        <column xsi:type="decimal" name="fee_amount" scale="6" precision="20" unsigned="false" nullable="false"
                default="0" comment="Fee Amount"/>
        <column xsi:type="varchar" name="fee_currency" nullable="true" length="3" comment="Fee Currency"/>
        <column xsi:type="varchar" name="custom_field" nullable="true" length="255" comment="Custom Field"/>
        <column xsi:type="varchar" name="consumer_id" nullable="true" length="127" comment="Consumer ID"/>
        <column xsi:type="varchar" name="payment_tracking_id" nullable="true" length="255"
                comment="Payment Tracking ID"/>
        <column xsi:type="varchar" name="store_id" nullable="true" length="50" comment="Store ID"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="row_id"/>
        </constraint>
        <constraint xsi:type="foreign" referenceId="FK_E183E488F593E0DE10C6EBFFEBAC9B55" table="paypal_settlement_report_row"
                    column="report_id" referenceTable="paypal_settlement_report" referenceColumn="report_id"
                    onDelete="CASCADE"/>
        <index referenceId="PAYPAL_SETTLEMENT_REPORT_ROW_REPORT_ID" indexType="btree">
            <column name="report_id"/>
        </index>
    </table>
    <table name="paypal_cert" resource="default" engine="innodb" comment="Paypal Certificate Table">
        <column xsi:type="smallint" name="cert_id" unsigned="true" nullable="false" identity="true"
                comment="Cert ID"/>
        <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
                default="0" comment="Website ID"/>
        <column xsi:type="text" name="content" nullable="true" comment="Content"/>
        <column xsi:type="timestamp" name="updated_at" on_update="false" nullable="true" comment="Updated At"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="cert_id"/>
        </constraint>
        <constraint xsi:type="foreign" referenceId="PAYPAL_CERT_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID" table="paypal_cert"
                    column="website_id" referenceTable="store_website" referenceColumn="website_id" onDelete="CASCADE"/>
        <index referenceId="PAYPAL_CERT_WEBSITE_ID" indexType="btree">
            <column name="website_id"/>
        </index>
    </table>
    <table name="paypal_payment_transaction" resource="default" engine="innodb"
           comment="PayPal Payflow Link Payment Transaction">
        <column xsi:type="int" name="transaction_id" unsigned="true" nullable="false" identity="true"
                comment="Entity ID"/>
        <column xsi:type="varchar" name="txn_id" nullable="true" length="100" comment="Txn ID"/>
        <column xsi:type="blob" name="additional_information" nullable="true" comment="Additional Information"/>
        <column xsi:type="timestamp" name="created_at" on_update="false" nullable="true" comment="Created At"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="transaction_id"/>
        </constraint>
        <constraint xsi:type="unique" referenceId="PAYPAL_PAYMENT_TRANSACTION_TXN_ID">
            <column name="txn_id"/>
        </constraint>
    </table>
    <table name="quote_payment" resource="checkout" comment="Sales Flat Quote Payment">
        <column xsi:type="varchar" name="paypal_payer_id" nullable="true" length="255" comment="Paypal Payer ID"/>
        <column xsi:type="varchar" name="paypal_payer_status" nullable="true" length="255"
                comment="Paypal Payer Status"/>
        <column xsi:type="varchar" name="paypal_correlation_id" nullable="true" length="255"
                comment="Paypal Correlation ID"/>
    </table>
    <table name="sales_order" resource="sales" comment="Sales Flat Order">
        <column xsi:type="int" name="paypal_ipn_customer_notified" unsigned="false" nullable="true"
                identity="false" default="0" comment="Paypal Ipn Customer Notified"/>
    </table>
</schema>