ae873215c0
Consolidates GRO-605, GRO-606, GRO-608 into a single clean PR: - GRO-605: Stripe SDK integration + payment service - GRO-606: Payment API endpoints (pay invoice, payment methods, refunds) - GRO-608: Stripe webhook handler Migration consolidation: - Single 0026_stripe_payment.sql migration adds stripeCustomerId to clients and stripe_payment_intent_id, stripe_refund_id, payment_failure_reason to invoices - Removed duplicate 0027_stripe_identifiers.sql Co-Authored-By: Paperclip <noreply@paperclip.ing>
7 lines
465 B
SQL
7 lines
465 B
SQL
ALTER TABLE "clients" ADD COLUMN "stripe_customer_id" text;
|
|
ALTER TABLE "clients" ADD CONSTRAINT "idx_clients_stripe_customer_id" UNIQUE("stripe_customer_id");
|
|
ALTER TABLE "invoices" ADD COLUMN "stripe_payment_intent_id" text;
|
|
ALTER TABLE "invoices" ADD COLUMN "stripe_refund_id" text;
|
|
ALTER TABLE "invoices" ADD COLUMN "payment_failure_reason" text;
|
|
ALTER TABLE "invoices" ADD CONSTRAINT "idx_invoices_stripe_payment_intent_id" UNIQUE("stripe_payment_intent_id");
|