@factor-wise/prisma-schema 2.0.52 → 2.0.54
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 +1 -1
- package/prisma/schema.prisma +15 -2
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -673,7 +673,7 @@ model customer {
|
|
|
673
673
|
isBlocked Boolean @default(false)
|
|
674
674
|
utmSource String? @db.VarChar(256)
|
|
675
675
|
alternateMobile String? @db.VarChar(50)
|
|
676
|
-
current_address
|
|
676
|
+
current_address Json?
|
|
677
677
|
digioKid String?
|
|
678
678
|
digioToken String? @db.VarChar(100)
|
|
679
679
|
digioMobileNumber String?
|
|
@@ -681,7 +681,7 @@ model customer {
|
|
|
681
681
|
is_onboarded Boolean @default(false)
|
|
682
682
|
last_login DateTime @default(now()) @db.Timestamp(0)
|
|
683
683
|
loanApplied Boolean @default(false)
|
|
684
|
-
permanent_address
|
|
684
|
+
permanent_address Json?
|
|
685
685
|
presalesassign Int?
|
|
686
686
|
companyName String? @db.Text
|
|
687
687
|
step String? @db.VarChar(255)
|
|
@@ -2343,6 +2343,19 @@ model account_agg {
|
|
|
2343
2343
|
createdAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2344
2344
|
processed_data Json?
|
|
2345
2345
|
latest_bankstatement Int?
|
|
2346
|
+
|
|
2347
|
+
@@index([customerId])
|
|
2348
|
+
@@index([mobileNumber])
|
|
2349
|
+
@@index([clienttrnxid])
|
|
2350
|
+
@@index([txnid])
|
|
2351
|
+
@@index([consentId])
|
|
2352
|
+
@@index([consentStatus])
|
|
2353
|
+
@@index([createdAt])
|
|
2354
|
+
@@index([pushDataReceivedAt])
|
|
2355
|
+
|
|
2356
|
+
// composite indexes (VERY useful)
|
|
2357
|
+
@@index([customerId, consentStatus])
|
|
2358
|
+
@@index([mobileNumber, createdAt])
|
|
2346
2359
|
}
|
|
2347
2360
|
|
|
2348
2361
|
model cibildata {
|