@factor-wise/prisma-schema 2.0.21 → 2.0.23

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.21",
3
+ "version": "2.0.23",
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",
@@ -2212,6 +2212,7 @@ model videokyc {
2212
2212
  updatedAt DateTime @default(now()) @db.DateTime(0)
2213
2213
  videoPath String?
2214
2214
  location String?
2215
+ latlongAddress String?
2215
2216
 
2216
2217
  @@index([leadID], map: "fk_lead")
2217
2218
  }
@@ -2630,6 +2631,61 @@ enum approval_status {
2630
2631
  Not_Required_Process @map("Not Required Process")
2631
2632
  }
2632
2633
 
2634
+ model fi {
2635
+ fiID Int @id @default(autoincrement())
2636
+ leadID Int
2637
+ customerID Int?
2638
+ bucket fi_bucket?
2639
+ overdueDays Int?
2640
+ interactionStatus fi_interactionStatus @default(INITIATED)
2641
+ latestNoticeType String? @db.VarChar(50)
2642
+ lastNoticeSentAt DateTime?
2643
+ caseClosed Boolean @default(false)
2644
+ caseClosedAt DateTime?
2645
+ createdAt DateTime @default(now())
2646
+ updatedAt DateTime @updatedAt
2647
+ assignedUserID Int?
2648
+ loanAmtApproved Int?
2649
+ sourceDomain String @db.VarChar(50)
2650
+ city String? @db.VarChar(100)
2651
+ remark String? @db.Text
2652
+ followupStatus String? @db.VarChar(50)
2653
+ selfie String? @db.VarChar(500)
2654
+ visitAddress String? @db.VarChar(255)
2655
+
2656
+ @@unique([leadID, sourceDomain], map: "uniq_lead_source")
2657
+ }
2658
+
2659
+
2660
+ enum fi_bucket {
2661
+ BUCKET_10_30 @map("10-30")
2662
+ BUCKET_31_60 @map("31-60")
2663
+ BUCKET_61_75 @map("61-75")
2664
+ BUCKET_76_90 @map("76-90")
2665
+ BUCKET_90_PLUS @map("90+")
2666
+ }
2667
+
2668
+
2669
+ model sms {
2670
+ id Int @id @default(autoincrement())
2671
+ leadID String @db.VarChar(50)
2672
+ customerID Int
2673
+ customerName String @db.VarChar(255)
2674
+ mobile String @db.VarChar(20)
2675
+ loanAmtApproved Decimal @db.Decimal(15,2)
2676
+ customerCity String? @db.VarChar(100)
2677
+ smsDate DateTime @db.Date
2678
+ smsTime DateTime @db.Time(0)
2679
+ sourceDomain String @db.VarChar(50)
2680
+ createdAt DateTime @default(now())
2681
+ }
2682
+
2683
+ enum fi_interactionStatus {
2684
+ INITIATED
2685
+ IN_PROCESS
2686
+ COMPLETED
2687
+ }
2688
+
2633
2689
  enum leads2_kfs {
2634
2690
  ZERO @map("0")
2635
2691
  ONE @map("1")