@factor-wise/prisma-schema 1.0.19 → 1.0.21

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": "1.0.19",
3
+ "version": "1.0.21",
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",
@@ -671,6 +671,7 @@ model customer {
671
671
  leads leads[]
672
672
  reference reference[]
673
673
  reloan_status reloan_status[]
674
+ tempLeads tempLead[]
674
675
 
675
676
  @@index([firstName], map: "firstName")
676
677
  @@index([firstName], map: "firstName_2")
@@ -2077,13 +2078,11 @@ model customerapp {
2077
2078
  token String?
2078
2079
  presalesassign Int
2079
2080
  address address[]
2080
- bankstatement bankstatement[]
2081
2081
  customer customer[]
2082
2082
  customeraccount customeraccount[]
2083
2083
  document document[]
2084
2084
  employer employer[]
2085
2085
  reminders reminders[]
2086
- tempLead tempLead[]
2087
2086
 
2088
2087
  @@index([mobile], map: "mobile")
2089
2088
  @@index([last_login], map: "idx_customer_lastLogin")
@@ -2255,8 +2254,7 @@ model emandate_charge {
2255
2254
 
2256
2255
  model bankstatement {
2257
2256
  id Int @id @default(autoincrement())
2258
- customerID Int?
2259
- customerappID Int
2257
+ customerID Int
2260
2258
  leadID Int?
2261
2259
  tempLeadID Int
2262
2260
  pushData Json?
@@ -2267,24 +2265,25 @@ model bankstatement {
2267
2265
  verifiedDate DateTime? @db.Date
2268
2266
  uploadBy Int?
2269
2267
  uploadedDate DateTime? @db.Date
2268
+ analyser_data Json?
2270
2269
  customer customer? @relation(fields: [customerID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_1")
2271
- customerapp customerapp @relation(fields: [customerappID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_2")
2272
2270
  leads leads? @relation(fields: [leadID], references: [leadID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_3")
2273
2271
  tempLead tempLead @relation(fields: [tempLeadID], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_4")
2274
2272
 
2275
2273
  @@index([customerID], map: "customerID")
2276
- @@index([customerappID], map: "customerappID")
2277
2274
  @@index([leadID], map: "leadID")
2278
2275
  @@index([tempLeadID], map: "tempLeadID")
2279
2276
  }
2280
2277
 
2281
2278
  model tempLead {
2282
2279
  id Int @id @default(autoincrement())
2283
- customerappID Int
2280
+ customerID Int
2281
+ createdAt DateTime @default(now()) @db.Timestamp(0)
2282
+ updatedAt DateTime @default(now()) @db.Timestamp(0)
2284
2283
  bankstatement bankstatement[]
2285
- customerapp customerapp @relation(fields: [customerappID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "tempLead_ibfk_1")
2284
+ customer customer @relation(fields: [customerID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "tempLead_ibfk_1")
2286
2285
 
2287
- @@index([customerappID], map: "customerappID")
2286
+ @@index([customerID], map: "customerID")
2288
2287
  }
2289
2288
 
2290
2289
  enum usersgoogle_oauth_provider {