@factor-wise/prisma-schema 2.0.44 → 2.0.46
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 +40 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -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,42 @@ 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
|
+
uan String?
|
|
956
|
+
status String @default("pending") @db.VarChar(50)
|
|
957
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
958
|
+
updated_at DateTime @updatedAt
|
|
959
|
+
lead leads @relation(fields: [leadID], references: [leadID], onDelete: Cascade)
|
|
960
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
@@index([leadID])
|
|
964
|
+
@@index([customerID])
|
|
965
|
+
@@index([status])
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
model profile_info {
|
|
970
|
+
id Int @id @default(autoincrement())
|
|
971
|
+
leadID Int
|
|
972
|
+
customerID Int
|
|
973
|
+
profileData Json?
|
|
974
|
+
status String @default("pending") @db.VarChar(50)
|
|
975
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
976
|
+
updated_at DateTime @updatedAt
|
|
977
|
+
lead leads @relation(fields: [leadID], references: [leadID], onDelete: Cascade)
|
|
978
|
+
customer customer @relation(fields: [customerID], references: [customerID], onDelete: Cascade)
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
@@index([leadID])
|
|
982
|
+
@@index([customerID])
|
|
983
|
+
@@index([status])
|
|
984
|
+
}
|
|
985
|
+
|
|
948
986
|
model facebook_lead {
|
|
949
987
|
id Int @id
|
|
950
988
|
lead_data String @db.LongText
|
|
@@ -1190,6 +1228,8 @@ model leads {
|
|
|
1190
1228
|
Payout Payout?
|
|
1191
1229
|
videokyc videokyc?
|
|
1192
1230
|
eagreement eagreement?
|
|
1231
|
+
employmentHistory employment_history[]
|
|
1232
|
+
profileInfo profile_info[]
|
|
1193
1233
|
|
|
1194
1234
|
@@index([customerID], map: "leadcustomerID")
|
|
1195
1235
|
}
|