-- Script SQL para agregar stripe_invoice_id a la tabla payments
-- Permite rastrear facturas de Stripe y evitar duplicados

ALTER TABLE `payments`
    ADD COLUMN `stripe_invoice_id` VARCHAR(255) NULL AFTER `description`,
    ADD INDEX `payments_stripe_invoice_id_index` (`stripe_invoice_id`);
