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-inventory/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="inventory_source" resource="default" engine="innodb">
        <column xsi:type="varchar" name="source_code" nullable="false" length="255"/>
        <column xsi:type="varchar" name="name" nullable="false" length="255"/>
        <column xsi:type="smallint" name="enabled" unsigned="true" nullable="false" identity="false"
                default="1"/>
        <column xsi:type="text" name="description" nullable="true"/>
        <column xsi:type="decimal" name="latitude" scale="6" precision="8" unsigned="false" nullable="true"/>
        <column xsi:type="decimal" name="longitude" scale="6" precision="9" unsigned="false" nullable="true"/>
        <column xsi:type="varchar" name="country_id" nullable="false" length="2"/>
        <column xsi:type="int" name="region_id" unsigned="true" nullable="true" identity="false"/>
        <column xsi:type="varchar" name="region" nullable="true" length="255"/>
        <column xsi:type="varchar" name="city" nullable="true" length="255"/>
        <column xsi:type="varchar" name="street" nullable="true" length="255"/>
        <column xsi:type="varchar" name="postcode" nullable="false" length="255"/>
        <column xsi:type="varchar" name="contact_name" nullable="true" length="255"/>
        <column xsi:type="varchar" name="email" nullable="true" length="255"/>
        <column xsi:type="varchar" name="phone" nullable="true" length="255"/>
        <column xsi:type="varchar" name="fax" nullable="true" length="255"/>
        <column xsi:type="smallint" name="use_default_carrier_config" unsigned="true" nullable="false"
                identity="false" default="1"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="source_code"/>
        </constraint>
    </table>
    <table name="inventory_source_carrier_link" resource="default" engine="innodb">
        <column xsi:type="int" name="link_id" unsigned="true" nullable="false" identity="true"/>
        <column xsi:type="varchar" name="source_code" nullable="false" length="255"/>
        <column xsi:type="varchar" name="carrier_code" nullable="false" length="255"/>
        <column xsi:type="smallint" name="position" unsigned="true" nullable="true" identity="false"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="link_id"/>
        </constraint>
        <constraint xsi:type="foreign" referenceId="INV_SOURCE_CARRIER_LNK_SOURCE_CODE_INV_SOURCE_SOURCE_CODE"
                    table="inventory_source_carrier_link" column="source_code" referenceTable="inventory_source"
                    referenceColumn="source_code" onDelete="CASCADE"/>
    </table>
    <table name="inventory_source_item" resource="default" engine="innodb">
        <column xsi:type="int" name="source_item_id" unsigned="true" nullable="false" identity="true"/>
        <column xsi:type="varchar" name="source_code" nullable="false" length="255"/>
        <column xsi:type="varchar" name="sku" nullable="false" length="64"/>
        <column xsi:type="decimal" name="quantity" scale="4" precision="12" unsigned="false" nullable="false"
                default="0"/>
        <column xsi:type="smallint" name="status" unsigned="true" nullable="false" identity="false"
                default="0"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="source_item_id"/>
        </constraint>
        <constraint xsi:type="foreign" referenceId="INVENTORY_SOURCE_ITEM_SOURCE_CODE_INVENTORY_SOURCE_SOURCE_CODE"
                    table="inventory_source_item" column="source_code" referenceTable="inventory_source"
                    referenceColumn="source_code" onDelete="CASCADE"/>
        <constraint xsi:type="unique" referenceId="INVENTORY_SOURCE_ITEM_SOURCE_CODE_SKU">
            <column name="source_code"/>
            <column name="sku"/>
        </constraint>
        <index referenceId="INVENTORY_SOURCE_ITEM_SKU_SOURCE_CODE_QUANTITY" indexType="btree">
            <column name="sku"/>
            <column name="source_code"/>
            <column name="quantity"/>
        </index>
    </table>
    <table name="inventory_stock" resource="default" engine="innodb">
        <column xsi:type="int" name="stock_id" unsigned="true" nullable="false" identity="true"/>
        <column xsi:type="varchar" name="name" nullable="false" length="255"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="stock_id"/>
        </constraint>
    </table>
    <table name="inventory_source_stock_link" resource="default" engine="innodb">
        <column xsi:type="int" name="link_id" unsigned="true" nullable="false" identity="true"/>
        <column xsi:type="int" name="stock_id" unsigned="true" nullable="false" identity="false"/>
        <column xsi:type="varchar" name="source_code" nullable="false" length="255"/>
        <column xsi:type="smallint" name="priority" unsigned="true" nullable="false" identity="false"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="link_id"/>
        </constraint>
        <constraint xsi:type="foreign" referenceId="INVENTORY_SOURCE_STOCK_LINK_STOCK_ID_INVENTORY_STOCK_STOCK_ID"
                    table="inventory_source_stock_link" column="stock_id" referenceTable="inventory_stock"
                    referenceColumn="stock_id" onDelete="CASCADE"/>
        <constraint xsi:type="foreign" referenceId="INV_SOURCE_STOCK_LNK_SOURCE_CODE_INV_SOURCE_SOURCE_CODE"
                    table="inventory_source_stock_link" column="source_code" referenceTable="inventory_source"
                    referenceColumn="source_code" onDelete="CASCADE"/>
        <constraint xsi:type="unique" referenceId="INVENTORY_SOURCE_STOCK_LINK_STOCK_ID_SOURCE_CODE">
            <column name="stock_id"/>
            <column name="source_code"/>
        </constraint>
        <index referenceId="INVENTORY_SOURCE_STOCK_LINK_STOCK_ID_PRIORITY" indexType="btree">
            <column name="stock_id"/>
            <column name="priority"/>
        </index>
    </table>
</schema>