@factor-wise/prisma-schema 1.0.18 → 1.0.20
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 +9 -9
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -514,6 +514,8 @@ model collection {
|
|
|
514
514
|
discount_waiver_amount String? @db.Text
|
|
515
515
|
refund_utr_no String? @db.VarChar(256)
|
|
516
516
|
|
|
517
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
518
|
+
|
|
517
519
|
@@index([leadID], map: "leadID")
|
|
518
520
|
}
|
|
519
521
|
|
|
@@ -669,6 +671,7 @@ model customer {
|
|
|
669
671
|
leads leads[]
|
|
670
672
|
reference reference[]
|
|
671
673
|
reloan_status reloan_status[]
|
|
674
|
+
tempLeads tempLead[]
|
|
672
675
|
|
|
673
676
|
@@index([firstName], map: "firstName")
|
|
674
677
|
@@index([firstName], map: "firstName_2")
|
|
@@ -1138,6 +1141,7 @@ model leads {
|
|
|
1138
1141
|
callhistorylogs callhistorylogs[]
|
|
1139
1142
|
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
1140
1143
|
loan loan?
|
|
1144
|
+
collections collection[]
|
|
1141
1145
|
|
|
1142
1146
|
@@index([customerID], map: "leadcustomerID")
|
|
1143
1147
|
}
|
|
@@ -2074,13 +2078,11 @@ model customerapp {
|
|
|
2074
2078
|
token String?
|
|
2075
2079
|
presalesassign Int
|
|
2076
2080
|
address address[]
|
|
2077
|
-
bankstatement bankstatement[]
|
|
2078
2081
|
customer customer[]
|
|
2079
2082
|
customeraccount customeraccount[]
|
|
2080
2083
|
document document[]
|
|
2081
2084
|
employer employer[]
|
|
2082
2085
|
reminders reminders[]
|
|
2083
|
-
tempLead tempLead[]
|
|
2084
2086
|
|
|
2085
2087
|
@@index([mobile], map: "mobile")
|
|
2086
2088
|
@@index([last_login], map: "idx_customer_lastLogin")
|
|
@@ -2252,8 +2254,7 @@ model emandate_charge {
|
|
|
2252
2254
|
|
|
2253
2255
|
model bankstatement {
|
|
2254
2256
|
id Int @id @default(autoincrement())
|
|
2255
|
-
customerID Int
|
|
2256
|
-
customerappID Int
|
|
2257
|
+
customerID Int
|
|
2257
2258
|
leadID Int?
|
|
2258
2259
|
tempLeadID Int
|
|
2259
2260
|
pushData Json?
|
|
@@ -2264,24 +2265,23 @@ model bankstatement {
|
|
|
2264
2265
|
verifiedDate DateTime? @db.Date
|
|
2265
2266
|
uploadBy Int?
|
|
2266
2267
|
uploadedDate DateTime? @db.Date
|
|
2268
|
+
analyser_data Json?
|
|
2267
2269
|
customer customer? @relation(fields: [customerID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_1")
|
|
2268
|
-
customerapp customerapp @relation(fields: [customerappID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_2")
|
|
2269
2270
|
leads leads? @relation(fields: [leadID], references: [leadID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_3")
|
|
2270
2271
|
tempLead tempLead @relation(fields: [tempLeadID], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_4")
|
|
2271
2272
|
|
|
2272
2273
|
@@index([customerID], map: "customerID")
|
|
2273
|
-
@@index([customerappID], map: "customerappID")
|
|
2274
2274
|
@@index([leadID], map: "leadID")
|
|
2275
2275
|
@@index([tempLeadID], map: "tempLeadID")
|
|
2276
2276
|
}
|
|
2277
2277
|
|
|
2278
2278
|
model tempLead {
|
|
2279
2279
|
id Int @id @default(autoincrement())
|
|
2280
|
-
|
|
2280
|
+
customerID Int
|
|
2281
2281
|
bankstatement bankstatement[]
|
|
2282
|
-
|
|
2282
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "tempLead_ibfk_1")
|
|
2283
2283
|
|
|
2284
|
-
@@index([
|
|
2284
|
+
@@index([customerID], map: "customerID")
|
|
2285
2285
|
}
|
|
2286
2286
|
|
|
2287
2287
|
enum usersgoogle_oauth_provider {
|