mirror of
https://github.com/MAGICGrants/campaign-site.git
synced 2026-01-09 12:27:59 -05:00
fix: make index on Donation.btcPayInvoiceId
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- DropIndex
|
||||
DROP INDEX "Donation_btcPayInvoiceId_key";
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Donation_btcPayInvoiceId_idx" ON "Donation"("btcPayInvoiceId");
|
||||
@@ -26,7 +26,7 @@ model Donation {
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
userId String?
|
||||
btcPayInvoiceId String? @unique
|
||||
btcPayInvoiceId String?
|
||||
stripePaymentIntentId String? // For donations and non-recurring memberships
|
||||
stripeInvoiceId String? @unique // For recurring memberships
|
||||
stripeSubscriptionId String? // For recurring memberships
|
||||
@@ -38,6 +38,7 @@ model Donation {
|
||||
cryptoAmount Float?
|
||||
membershipExpiresAt DateTime?
|
||||
|
||||
@@index([btcPayInvoiceId])
|
||||
@@index([stripePaymentIntentId])
|
||||
@@index([stripeSubscriptionId])
|
||||
@@index([userId])
|
||||
|
||||
Reference in New Issue
Block a user