@factor-wise/prisma-schema 2.0.43 → 2.0.45

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.43",
3
+ "version": "2.0.45",
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",
@@ -697,6 +697,8 @@ model customer {
697
697
  reloan_status reloan_status[]
698
698
  reminders reminders[]
699
699
  aiAgentCallLogs AIAgentCallLog[]
700
+ employmentHistory employment_history[]
701
+ profileInfo profile_info[]
700
702
 
701
703
 
702
704
  @@index([firstName], map: "firstName")
@@ -945,6 +947,41 @@ model employer {
945
947
  @@index([customerappId], map: "fk_employer_customerapp")
946
948
  }
947
949
 
950
+ model employment_history {
951
+ id Int @id @default(autoincrement())
952
+ leadID Int
953
+ customerID Int
954
+ employmentData Json?
955
+ status String @default("pending") @db.VarChar(50)
956
+ createdDate DateTime @default(now()) @db.DateTime(0)
957
+ updated_at DateTime @updatedAt
958
+ lead leads @relation(fields: [leadID], references: [leadID], onDelete: Cascade)
959
+ customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
960
+
961
+
962
+ @@index([leadID])
963
+ @@index([customerID])
964
+ @@index([status])
965
+ }
966
+
967
+
968
+ model profile_info {
969
+ id Int @id @default(autoincrement())
970
+ leadID Int
971
+ customerID Int
972
+ profileData Json?
973
+ status String @default("pending") @db.VarChar(50)
974
+ createdDate DateTime @default(now()) @db.DateTime(0)
975
+ updated_at DateTime @updatedAt
976
+ lead leads @relation(fields: [leadID], references: [leadID], onDelete: Cascade)
977
+ customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
978
+
979
+
980
+ @@index([leadID])
981
+ @@index([customerID])
982
+ @@index([status])
983
+ }
984
+
948
985
  model facebook_lead {
949
986
  id Int @id
950
987
  lead_data String @db.LongText
@@ -1190,6 +1227,8 @@ model leads {
1190
1227
  Payout Payout?
1191
1228
  videokyc videokyc?
1192
1229
  eagreement eagreement?
1230
+ employmentHistory employment_history[]
1231
+ profileInfo profile_info[]
1193
1232
 
1194
1233
  @@index([customerID], map: "leadcustomerID")
1195
1234
  }
@@ -2793,7 +2832,7 @@ model vendor_leads {
2793
2832
 
2794
2833
  name String? @db.VarChar(255)
2795
2834
  mobile String @db.VarChar(20)
2796
- pancard String? @db.VarChar(20)
2835
+ pancard String? @unique
2797
2836
  email String? @db.VarChar(255)
2798
2837
  pincode String? @db.VarChar(10)
2799
2838
  monthly_income Decimal? @db.Decimal(15, 2)
@@ -2829,6 +2868,7 @@ model vendor_leads {
2829
2868
  @@index([mobile])
2830
2869
  @@index([status])
2831
2870
  @@index([assignedTo])
2871
+ @@unique([vendorId, pancard])
2832
2872
  }
2833
2873
 
2834
2874