-- Stripe recurring billing (Checkout mode:"subscription") bağlantı kolonları. -- users.stripe_customer_id → sonraki checkout'lar aynı Stripe Customer'da -- toplanır (kayıtlı kart + fatura geçmişi tek kayıtta). -- user_subscriptions.stripe_subscription_id → yenileme faturaları -- (invoice.paid/payment_failed webhook'ları) bizim abonelik satırına bu -- kolondan çözülür; trial ve eski tek-seferlik satırlarda NULL kalır. -- payments.stripe_invoice_id → invoice.paid webhook retry'larında mükerrer -- gelir kaydını önleyen dedupe anahtarı. ALTER TABLE "users" ADD COLUMN "stripe_customer_id" text; --> statement-breakpoint ALTER TABLE "user_subscriptions" ADD COLUMN "stripe_subscription_id" text; --> statement-breakpoint ALTER TABLE "payments" ADD COLUMN "stripe_invoice_id" text; --> statement-breakpoint CREATE INDEX "user_subscriptions_stripe_sub_idx" ON "user_subscriptions" USING btree ("stripe_subscription_id"); --> statement-breakpoint CREATE INDEX "payments_stripe_invoice_id_idx" ON "payments" USING btree ("stripe_invoice_id");