Add Stripe payment fields to NEXUS tables
cgen-7740cad298bf4f2cbe57be2d75e99518
This commit is contained in:
parent
69959d4379
commit
8409c0fbcf
1 changed files with 15 additions and 0 deletions
15
supabase/migrations/20250301_add_stripe_payment_fields.sql
Normal file
15
supabase/migrations/20250301_add_stripe_payment_fields.sql
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
-- Add Stripe payment fields to nexus_contracts
|
||||
ALTER TABLE public.nexus_contracts ADD COLUMN IF NOT EXISTS stripe_payment_intent_id text;
|
||||
|
||||
-- Add index for quick lookup
|
||||
CREATE INDEX IF NOT EXISTS nexus_contracts_stripe_payment_intent_idx ON public.nexus_contracts (stripe_payment_intent_id);
|
||||
|
||||
-- Add Stripe charge fields to nexus_payments
|
||||
ALTER TABLE public.nexus_payments ADD COLUMN IF NOT EXISTS stripe_charge_id text;
|
||||
|
||||
-- Add index for quick lookup
|
||||
CREATE INDEX IF NOT EXISTS nexus_payments_stripe_charge_idx ON public.nexus_payments (stripe_charge_id);
|
||||
|
||||
-- Add comment
|
||||
COMMENT ON COLUMN public.nexus_contracts.stripe_payment_intent_id IS 'Stripe PaymentIntent ID for tracking contract payments';
|
||||
COMMENT ON COLUMN public.nexus_payments.stripe_charge_id IS 'Stripe Charge ID for refund tracking';
|
||||
Loading…
Reference in a new issue