@factor-wise/prisma-schema 2.0.61 → 2.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factor-wise/prisma-schema",
3
- "version": "2.0.61",
3
+ "version": "2.0.62",
4
4
  "description": "Shared Prisma schema and generated client for Factor Wise projects",
5
5
  "main": "generated/client/index.js",
6
6
  "types": "generated/client/index.d.ts",
@@ -1622,6 +1622,21 @@ model payout_accounts_log {
1622
1622
  @@ignore
1623
1623
  }
1624
1624
 
1625
+ model PaymentIdempotency {
1626
+ id Int @id @default(autoincrement())
1627
+ idempotencyKey String @unique
1628
+ paymentId String
1629
+ gateway String
1630
+ status String // PROCESSING | SUCCESS | FAILED
1631
+ requestPayload Json?
1632
+ responsePayload Json?
1633
+
1634
+ createdAt DateTime @default(now())
1635
+ updatedAt DateTime @updatedAt
1636
+
1637
+ @@index([paymentId])
1638
+ }
1639
+
1625
1640
  model Payout {
1626
1641
  id Int @id @default(autoincrement())
1627
1642
  razorpayPayoutId String? @unique