@factor-wise/prisma-schema 1.0.27 → 1.0.29
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 +59 -51
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -502,7 +502,7 @@ model collection {
|
|
|
502
502
|
collectedBy Int
|
|
503
503
|
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
504
504
|
collectionStatus String @default("Approved") @db.VarChar(216)
|
|
505
|
-
collectionStatusby
|
|
505
|
+
collectionStatusby Int?
|
|
506
506
|
approvedDate DateTime? @db.DateTime(0)
|
|
507
507
|
orderID String @default("no") @db.VarChar(216)
|
|
508
508
|
excess_amount String? @db.Text
|
|
@@ -510,9 +510,14 @@ model collection {
|
|
|
510
510
|
discount_waiver_amount String? @db.Text
|
|
511
511
|
refund_utr_no String? @db.VarChar(256)
|
|
512
512
|
s3key String?
|
|
513
|
+
collectedByUser lms_users @relation("CollectionCollectedByUser", fields: [collectedBy], references: [userID])
|
|
513
514
|
lead leads @relation(fields: [leadID], references: [leadID])
|
|
515
|
+
statusUpdatedByUser lms_users? @relation("CollectionStatusUpdatedByUser", fields: [collectionStatusby], references: [userID])
|
|
516
|
+
|
|
514
517
|
|
|
515
518
|
@@index([leadID], map: "leadID")
|
|
519
|
+
@@index([collectedBy])
|
|
520
|
+
@@index([collectionStatusby])
|
|
516
521
|
}
|
|
517
522
|
|
|
518
523
|
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
@@ -958,6 +963,7 @@ model cibildata_archive {
|
|
|
958
963
|
@@index([leadID], map: "leadID")
|
|
959
964
|
}
|
|
960
965
|
|
|
966
|
+
|
|
961
967
|
model finbox_aa_dow_st {
|
|
962
968
|
id Int @id
|
|
963
969
|
customerID Int
|
|
@@ -1281,34 +1287,35 @@ model legal_notices {
|
|
|
1281
1287
|
|
|
1282
1288
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1283
1289
|
model loan {
|
|
1284
|
-
id
|
|
1285
|
-
loanID
|
|
1286
|
-
leadID
|
|
1287
|
-
loanNo
|
|
1288
|
-
customerID
|
|
1289
|
-
disbursalAmount
|
|
1290
|
-
disbursalDate
|
|
1291
|
-
disbursalTime
|
|
1292
|
-
disbursalRefrenceNo
|
|
1293
|
-
accountNo
|
|
1294
|
-
accountType
|
|
1295
|
-
bankIfsc
|
|
1296
|
-
bank
|
|
1297
|
-
bankBranch
|
|
1298
|
-
chequeDetails
|
|
1299
|
-
pdDate
|
|
1300
|
-
pdDoneBy
|
|
1301
|
-
deduction
|
|
1302
|
-
remarks
|
|
1303
|
-
status
|
|
1304
|
-
rejReason
|
|
1305
|
-
companyAccountNo
|
|
1306
|
-
ip
|
|
1307
|
-
disbursedBy
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1290
|
+
id Int @id @default(autoincrement())
|
|
1291
|
+
loanID Int
|
|
1292
|
+
leadID Int @unique
|
|
1293
|
+
loanNo String
|
|
1294
|
+
customerID Int?
|
|
1295
|
+
disbursalAmount Float
|
|
1296
|
+
disbursalDate String? @db.Text
|
|
1297
|
+
disbursalTime DateTime @default(dbgenerated("'00:00:00'")) @db.Time(0)
|
|
1298
|
+
disbursalRefrenceNo String?
|
|
1299
|
+
accountNo String @db.VarChar(100)
|
|
1300
|
+
accountType String @db.VarChar(100)
|
|
1301
|
+
bankIfsc String @db.VarChar(100)
|
|
1302
|
+
bank String
|
|
1303
|
+
bankBranch String
|
|
1304
|
+
chequeDetails String
|
|
1305
|
+
pdDate DateTime @db.Date
|
|
1306
|
+
pdDoneBy String @db.VarChar(100)
|
|
1307
|
+
deduction Float @default(0)
|
|
1308
|
+
remarks String
|
|
1309
|
+
status loan_status
|
|
1310
|
+
rejReason String? @db.VarChar(256)
|
|
1311
|
+
companyAccountNo String @default("")
|
|
1312
|
+
ip String @db.VarChar(100)
|
|
1313
|
+
disbursedBy Int?
|
|
1314
|
+
acutalDisbursalAmount Int?
|
|
1315
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1316
|
+
allocate_date DateTime? @default(now()) @db.DateTime(0)
|
|
1317
|
+
allocated_by String? @db.VarChar(64)
|
|
1318
|
+
lead leads @relation(fields: [leadID], references: [leadID])
|
|
1312
1319
|
}
|
|
1313
1320
|
|
|
1314
1321
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
@@ -1849,26 +1856,26 @@ model user_ip_details {
|
|
|
1849
1856
|
|
|
1850
1857
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1851
1858
|
model users {
|
|
1852
|
-
userID
|
|
1853
|
-
name
|
|
1854
|
-
email
|
|
1855
|
-
mobile
|
|
1856
|
-
did_no
|
|
1857
|
-
branch
|
|
1858
|
-
userName
|
|
1859
|
-
password
|
|
1860
|
-
role
|
|
1861
|
-
status
|
|
1862
|
-
createdBy
|
|
1863
|
-
createdDate
|
|
1864
|
-
accessPer
|
|
1865
|
-
utype
|
|
1866
|
-
firebase_token
|
|
1867
|
-
device_token
|
|
1868
|
-
lip
|
|
1869
|
-
convoque_login_id
|
|
1870
|
-
convoque_exten
|
|
1871
|
-
reloan_status
|
|
1859
|
+
userID Int @id @default(autoincrement())
|
|
1860
|
+
name String @db.VarChar(100)
|
|
1861
|
+
email String
|
|
1862
|
+
mobile String @db.VarChar(20)
|
|
1863
|
+
did_no String? @db.VarChar(36)
|
|
1864
|
+
branch String
|
|
1865
|
+
userName String
|
|
1866
|
+
password String
|
|
1867
|
+
role users_role
|
|
1868
|
+
status users_status @default(Active)
|
|
1869
|
+
createdBy Int
|
|
1870
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1871
|
+
accessPer String @db.MediumText
|
|
1872
|
+
utype String @default("ramfin-corp") @db.VarChar(216)
|
|
1873
|
+
firebase_token String? @db.Text
|
|
1874
|
+
device_token String? @db.Text
|
|
1875
|
+
lip String @default("no") @db.VarChar(64)
|
|
1876
|
+
convoque_login_id String? @db.Text
|
|
1877
|
+
convoque_exten String? @db.Text
|
|
1878
|
+
reloan_status reloan_status[]
|
|
1872
1879
|
}
|
|
1873
1880
|
|
|
1874
1881
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
@@ -2133,10 +2140,10 @@ model cibildata {
|
|
|
2133
2140
|
leadID Int
|
|
2134
2141
|
requestPayload Json
|
|
2135
2142
|
responsePayload Json?
|
|
2136
|
-
analyser_data Json?
|
|
2137
2143
|
status String @default("pending") @db.VarChar(50)
|
|
2138
2144
|
createdAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2139
2145
|
updatedAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2146
|
+
analyser_data Json?
|
|
2140
2147
|
|
|
2141
2148
|
@@index([leadID], map: "leadID")
|
|
2142
2149
|
}
|
|
@@ -2218,6 +2225,8 @@ model lms_users {
|
|
|
2218
2225
|
approvalsSanctioned approval[] @relation("ApprovalSanctionByUser")
|
|
2219
2226
|
callhistory callhistory[]
|
|
2220
2227
|
callhistorylogs callhistorylogs[]
|
|
2228
|
+
collectionsCollected collection[] @relation("CollectionCollectedByUser")
|
|
2229
|
+
collectionsStatusUpdated collection[] @relation("CollectionStatusUpdatedByUser")
|
|
2221
2230
|
lms_users_permissions lms_users_permissions?
|
|
2222
2231
|
reference reference[]
|
|
2223
2232
|
}
|
|
@@ -2267,7 +2276,6 @@ model bankstatement {
|
|
|
2267
2276
|
@@index([customerID], map: "bankstatement_ibfk_1")
|
|
2268
2277
|
}
|
|
2269
2278
|
|
|
2270
|
-
|
|
2271
2279
|
enum usersgoogle_oauth_provider {
|
|
2272
2280
|
google
|
|
2273
2281
|
facebook
|