<?xml version="1.0"?>
<!--
    Columnas que Yeboyebo_MpRmaSystem añade a las tablas de Webkul_MpRmaSystem.
    Antes solo existían vía InstallSchema/UpgradeSchema (addColumn), por lo que se
    perdían si Webkul recreaba sus tablas; declarándolas aquí setup:upgrade las
    mantiene siempre.

    pickup_rma y las columnas rma_replace_* de quote/sales_order siguen en
    UpgradeSchema: pickup_rma tiene filas huérfanas y declarar su FK haría fallar
    setup:upgrade.
-->
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
    <table name="marketplace_rma_details">
        <column xsi:type="text" name="refExped" nullable="true" comment="Referencia de la expedición (num seguimiento)"/>
        <column xsi:type="varchar" name="delivery_warehouse" length="255" nullable="true" comment="Almacén de entrega del RMA"/>
        <column xsi:type="varchar" name="payment_method" length="255" nullable="true" comment="Método pago de RMA"/>
        <column xsi:type="varchar" name="price_rma" length="255" nullable="true" comment="Precio de envío del RMA"/>
    </table>
    <table name="marketplace_rma_items">
        <column xsi:type="varchar" name="replace_sku" length="255" nullable="true" comment="Referencia del nuevo articulo"/>
        <column xsi:type="varchar" name="replace_size" length="255" nullable="true" comment="Talla del nuevo articulo"/>
    </table>
</schema>
