@factor-wise/prisma-schema 2.0.36 → 2.0.38

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.36",
3
+ "version": "2.0.38",
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",
@@ -672,7 +672,9 @@ model customer {
672
672
  alternateMobile String? @db.VarChar(50)
673
673
  current_address String? @db.Text
674
674
  digioKid String?
675
+ digioToken String? @db.VarChar(100)
675
676
  digioMobileNumber String?
677
+ kyc_at DateTime? @default(now()) @db.Timestamp(0)
676
678
  is_onboarded Boolean @default(false)
677
679
  last_login DateTime @default(now()) @db.Timestamp(0)
678
680
  loanApplied Boolean @default(false)
@@ -2411,7 +2413,7 @@ model bank_analysis {
2411
2413
  id Int @id @default(autoincrement())
2412
2414
  statementId Int @unique
2413
2415
  customerID Int
2414
- clienttrnxid String
2416
+ clienttrnxid String @unique
2415
2417
  analysisData Json?
2416
2418
  status bankanalysisStatus
2417
2419
  updated_at DateTime @updatedAt
@@ -2419,6 +2421,7 @@ model bank_analysis {
2419
2421
  bankstatement bankstatement @relation(fields: [statementId], references: [id])
2420
2422
 
2421
2423
  @@index([statementId], map: "statementId")
2424
+ @@index([clienttrnxid], map: "clienttrnxid")
2422
2425
  @@index([customerID], map: "bankstatement_ibfk_1")
2423
2426
  }
2424
2427