@factor-wise/prisma-schema 2.0.55 → 2.0.57
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 +26 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -699,6 +699,7 @@ model customer {
|
|
|
699
699
|
aiAgentCallLogs AIAgentCallLog[]
|
|
700
700
|
employmentHistory employment_history[]
|
|
701
701
|
profileInfo profile_info[]
|
|
702
|
+
finb_logs finb_logs?
|
|
702
703
|
|
|
703
704
|
|
|
704
705
|
@@index([firstName], map: "firstName")
|
|
@@ -983,6 +984,22 @@ model profile_info {
|
|
|
983
984
|
@@index([status])
|
|
984
985
|
}
|
|
985
986
|
|
|
987
|
+
model finb_logs {
|
|
988
|
+
id Int @id @default(autoincrement())
|
|
989
|
+
customerID Int @unique
|
|
990
|
+
response Json?
|
|
991
|
+
type String
|
|
992
|
+
status String @default("pending") @db.VarChar(50)
|
|
993
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
994
|
+
updated_at DateTime @updatedAt
|
|
995
|
+
customer customer @relation(fields: [customerID], references: [customerID])
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
@@index([customerID])
|
|
999
|
+
@@index([status])
|
|
1000
|
+
@@index([type])
|
|
1001
|
+
}
|
|
1002
|
+
|
|
986
1003
|
model facebook_lead {
|
|
987
1004
|
id Int @id
|
|
988
1005
|
lead_data String @db.LongText
|
|
@@ -1217,6 +1234,7 @@ model leads {
|
|
|
1217
1234
|
bankstatement bankstatement[]
|
|
1218
1235
|
callHistories callhistory[]
|
|
1219
1236
|
callhistorylogs callhistorylogs[]
|
|
1237
|
+
notifications notifications[]
|
|
1220
1238
|
collections collection[]
|
|
1221
1239
|
customer customer? @relation(fields: [customerID], references: [customerID])
|
|
1222
1240
|
loan loan?
|
|
@@ -1530,6 +1548,14 @@ model notifications {
|
|
|
1530
1548
|
mtype String @default("crm") @db.VarChar(216)
|
|
1531
1549
|
uid String? @db.VarChar(64)
|
|
1532
1550
|
otp String? @db.Text
|
|
1551
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
1552
|
+
|
|
1553
|
+
@@index([leadID])
|
|
1554
|
+
@@index([createdDate])
|
|
1555
|
+
@@index([type])
|
|
1556
|
+
|
|
1557
|
+
@@index([leadID, createdDate])
|
|
1558
|
+
@@index([leadID, type])
|
|
1533
1559
|
}
|
|
1534
1560
|
|
|
1535
1561
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|