@adaptware/eagles-db 0.5.45 → 0.5.46

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-b04809dc5d4e17170055e6dfd3c48ffc8bf1352d4e0b8db938be5f0c9e3c7486",
2
+ "name": "prisma-client-3b3295f4ed498ad3a835be34c4c480f381ee054e66b6dbfb8e4be04318fdf3ae",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "default.js",
@@ -1833,7 +1833,6 @@ enum IntegrationProvider {
1833
1833
  MICROSOFT
1834
1834
  ZOOM
1835
1835
  CALENDLY
1836
- RAZORPAY
1837
1836
 
1838
1837
  @@schema("public")
1839
1838
  }
@@ -3559,8 +3558,6 @@ model Organisation {
3559
3558
  licensing_ledger_entries LicensingLedgerEntry[]
3560
3559
  license_package_organisations LicensePackageOrganisation[]
3561
3560
  ai_cost_ledger_entries AiCostLedgerEntry[]
3562
- billing_transactions BillingTransaction[]
3563
- payment_webhook_events PaymentWebhookEvent[]
3564
3561
 
3565
3562
  @@index([name])
3566
3563
  @@schema("public")
@@ -3580,119 +3577,6 @@ model OrganisationConfig {
3580
3577
  @@schema("public")
3581
3578
  }
3582
3579
 
3583
- // PAYMENT SERVICE boundary — portable payment microservice owns these enums/columns.
3584
-
3585
- enum BillingTransactionStatus {
3586
- INITIATED
3587
- ORDER_CREATED
3588
- PAYMENT_PENDING
3589
- SUCCESS
3590
- FAILED
3591
- CANCELLED
3592
- REFUND_PENDING
3593
- REFUND_FAILED
3594
- REFUNDED
3595
-
3596
- @@schema("public")
3597
- }
3598
-
3599
- enum BillingTransactionType {
3600
- PURCHASE
3601
- TOP_UP
3602
- REFUND
3603
-
3604
- @@schema("public")
3605
- }
3606
-
3607
- enum BillingTransactionFailureCategory {
3608
- RAZORPAY_ORDER
3609
- RAZORPAY_PAYMENT
3610
- REFUND
3611
- INTERNAL
3612
-
3613
- @@schema("public")
3614
- }
3615
-
3616
- /// Payment reconciliation state when Treadspace status is FAILED but Razorpay captured payment.
3617
- enum BillingPaymentMismatchStatus {
3618
- DETECTED
3619
- UNFULFILLED
3620
-
3621
- @@schema("public")
3622
- }
3623
-
3624
- /// Financial transaction lifecycle for organisation billing purchases.
3625
- model BillingTransaction {
3626
- id String @id @default(uuid())
3627
- organisation_id String
3628
- /// Opaque plan/product identity supplied at checkout. Not a catalog FK.
3629
- purchase_reference String
3630
- /// Human-readable snapshot captured at checkout for invoices and receipts.
3631
- purchase_display_name String?
3632
- transaction_type BillingTransactionType
3633
- status BillingTransactionStatus @default(INITIATED)
3634
- failure_category BillingTransactionFailureCategory?
3635
- /// Human-readable or provider detail (e.g. Razorpay error_description).
3636
- failure_reason String?
3637
- amount Int
3638
- currency String @default("INR")
3639
- razorpay_order_id String?
3640
- razorpay_payment_id String? @unique
3641
- /// Razorpay payment method at capture (card, netbanking, upi, wallet, etc.).
3642
- payment_method String?
3643
- razorpay_subscription_id String?
3644
- razorpay_refund_id String?
3645
- refund_reason String?
3646
- refund_amount Int?
3647
- idempotency_key String @unique
3648
- invoice_number String? @unique
3649
- /// Email of the org Admin who initiated checkout (bill-to).
3650
- purchaser_email String?
3651
- /// Set when FAILED but Razorpay order/payment is captured (reconciliation path).
3652
- payment_mismatch_status BillingPaymentMismatchStatus?
3653
- /// Strict same-intent SUCCESS transaction that fulfilled the purchase (UNFULFILLED only).
3654
- payment_mismatch_fulfilled_by_id String?
3655
- created_at DateTime @default(now())
3656
- updated_at DateTime @updatedAt
3657
-
3658
- organisation Organisation @relation(fields: [organisation_id], references: [id])
3659
-
3660
- @@index([organisation_id, status])
3661
- @@index([purchase_reference])
3662
- @@index([razorpay_order_id])
3663
- @@map("billing_transactions")
3664
- @@schema("public")
3665
- }
3666
-
3667
- enum PaymentWebhookEventStatus {
3668
- RECEIVED
3669
- PROCESSED
3670
- FAILED
3671
-
3672
- @@schema("public")
3673
- }
3674
-
3675
- /// Idempotent record of payment provider webhook deliveries.
3676
- model PaymentWebhookEvent {
3677
- id String @id @default(uuid())
3678
- organisation_id String?
3679
- provider String
3680
- provider_event_id String
3681
- event_type String
3682
- status PaymentWebhookEventStatus @default(RECEIVED)
3683
- billing_transaction_id String?
3684
- error_message String?
3685
- processed_at DateTime?
3686
- created_at DateTime @default(now())
3687
-
3688
- organisation Organisation? @relation(fields: [organisation_id], references: [id])
3689
-
3690
- @@unique([provider, provider_event_id])
3691
- @@index([status, created_at])
3692
- @@map("payment_webhook_events")
3693
- @@schema("public")
3694
- }
3695
-
3696
3580
  model Permission {
3697
3581
  id String @id @default(uuid())
3698
3582
  permissions String[] @default([])
@@ -4463,6 +4347,8 @@ model User {
4463
4347
  created_by String
4464
4348
  updated_by String
4465
4349
  is_active Boolean @default(true)
4350
+ /// Set when removed from team (Delete); null for active/inactive-only users.
4351
+ deleted_at DateTime?
4466
4352
  is_self_registered Boolean @default(true)
4467
4353
  permission_id String? @unique
4468
4354
  preferences Json? @default("{}")