Files
member-console/internal/stripe/queries/payment_mappings.sql

9 lines
287 B
SQL

-- name: InsertPaymentMapping :one
INSERT INTO stripe.payment_mappings (payment_id, stripe_payment_intent_id, sync_status)
VALUES ($1, $2, $3)
RETURNING *;
-- name: GetPaymentMappingByStripePaymentIntentID :one
SELECT * FROM stripe.payment_mappings
WHERE stripe_payment_intent_id = $1;