@factor-wise/prisma-schema 2.0.23 → 2.0.25
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 +21 -8
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -247,6 +247,7 @@ model approval {
|
|
|
247
247
|
documentr String? @db.VarChar(512)
|
|
248
248
|
redFlag String?
|
|
249
249
|
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
250
|
+
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
250
251
|
sanctionalloUID Int?
|
|
251
252
|
customerApproval approval_customerApproval @default(ZERO)
|
|
252
253
|
employmentType String? @db.VarChar(50)
|
|
@@ -1150,6 +1151,7 @@ model leads {
|
|
|
1150
1151
|
creditAssign Int
|
|
1151
1152
|
collectionUID Int?
|
|
1152
1153
|
createdDate DateTime @default(now()) @db.Timestamp(0)
|
|
1154
|
+
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
1153
1155
|
alloUID String @default("no") @db.VarChar(216)
|
|
1154
1156
|
sanctionalloUID Int
|
|
1155
1157
|
sanctionAppID String @default("no") @db.VarChar(216)
|
|
@@ -1343,6 +1345,7 @@ model loan {
|
|
|
1343
1345
|
ip String @db.VarChar(100)
|
|
1344
1346
|
disbursedBy Int?
|
|
1345
1347
|
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1348
|
+
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
1346
1349
|
allocate_date DateTime? @default(now()) @db.DateTime(0)
|
|
1347
1350
|
allocated_by String? @db.VarChar(64)
|
|
1348
1351
|
acutalDisbursalAmount Int?
|
|
@@ -1624,13 +1627,19 @@ model penny_drop {
|
|
|
1624
1627
|
|
|
1625
1628
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1626
1629
|
model pincode {
|
|
1627
|
-
id
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1630
|
+
id BigInt @id @default(autoincrement())
|
|
1631
|
+
pincode String @db.VarChar(10)
|
|
1632
|
+
city String? @db.VarChar(100)
|
|
1633
|
+
state String? @db.VarChar(100)
|
|
1634
|
+
isActive Boolean @default(true)
|
|
1635
|
+
riskLevel Int?
|
|
1636
|
+
priority Int?
|
|
1632
1637
|
|
|
1633
|
-
|
|
1638
|
+
createdAt DateTime @default(now())
|
|
1639
|
+
updatedAt DateTime @updatedAt
|
|
1640
|
+
|
|
1641
|
+
@@unique([pincode])
|
|
1642
|
+
@@index([pincode, isActive])
|
|
1634
1643
|
}
|
|
1635
1644
|
|
|
1636
1645
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
@@ -2212,7 +2221,7 @@ model videokyc {
|
|
|
2212
2221
|
updatedAt DateTime @default(now()) @db.DateTime(0)
|
|
2213
2222
|
videoPath String?
|
|
2214
2223
|
location String?
|
|
2215
|
-
latlongAddress String?
|
|
2224
|
+
latlongAddress String? @db.Text
|
|
2216
2225
|
|
|
2217
2226
|
@@index([leadID], map: "fk_lead")
|
|
2218
2227
|
}
|
|
@@ -2244,7 +2253,11 @@ model cibildata {
|
|
|
2244
2253
|
updatedAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2245
2254
|
analyser_data Json?
|
|
2246
2255
|
|
|
2247
|
-
|
|
2256
|
+
@@index([leadID], map: "idx_leadID")
|
|
2257
|
+
@@index([status], map: "idx_status")
|
|
2258
|
+
@@index([createdAt], map: "idx_createdAt")
|
|
2259
|
+
@@index([leadID, status], map: "idx_lead_status")
|
|
2260
|
+
@@index([leadID, createdAt], map: "idx_lead_createdAt")
|
|
2248
2261
|
}
|
|
2249
2262
|
|
|
2250
2263
|
model loan_sequence {
|