@factor-wise/prisma-schema 1.0.27 → 1.0.28
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 +29 -23
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
|
|
@@ -1849,26 +1854,26 @@ model user_ip_details {
|
|
|
1849
1854
|
|
|
1850
1855
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
1851
1856
|
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
|
|
1857
|
+
userID Int @id @default(autoincrement())
|
|
1858
|
+
name String @db.VarChar(100)
|
|
1859
|
+
email String
|
|
1860
|
+
mobile String @db.VarChar(20)
|
|
1861
|
+
did_no String? @db.VarChar(36)
|
|
1862
|
+
branch String
|
|
1863
|
+
userName String
|
|
1864
|
+
password String
|
|
1865
|
+
role users_role
|
|
1866
|
+
status users_status @default(Active)
|
|
1867
|
+
createdBy Int
|
|
1868
|
+
createdDate DateTime @default(now()) @db.DateTime(0)
|
|
1869
|
+
accessPer String @db.MediumText
|
|
1870
|
+
utype String @default("ramfin-corp") @db.VarChar(216)
|
|
1871
|
+
firebase_token String? @db.Text
|
|
1872
|
+
device_token String? @db.Text
|
|
1873
|
+
lip String @default("no") @db.VarChar(64)
|
|
1874
|
+
convoque_login_id String? @db.Text
|
|
1875
|
+
convoque_exten String? @db.Text
|
|
1876
|
+
reloan_status reloan_status[]
|
|
1872
1877
|
}
|
|
1873
1878
|
|
|
1874
1879
|
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
|
|
@@ -2133,10 +2138,10 @@ model cibildata {
|
|
|
2133
2138
|
leadID Int
|
|
2134
2139
|
requestPayload Json
|
|
2135
2140
|
responsePayload Json?
|
|
2136
|
-
analyser_data Json?
|
|
2137
2141
|
status String @default("pending") @db.VarChar(50)
|
|
2138
2142
|
createdAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2139
2143
|
updatedAt DateTime? @default(now()) @db.Timestamp(0)
|
|
2144
|
+
analyser_data Json?
|
|
2140
2145
|
|
|
2141
2146
|
@@index([leadID], map: "leadID")
|
|
2142
2147
|
}
|
|
@@ -2218,6 +2223,8 @@ model lms_users {
|
|
|
2218
2223
|
approvalsSanctioned approval[] @relation("ApprovalSanctionByUser")
|
|
2219
2224
|
callhistory callhistory[]
|
|
2220
2225
|
callhistorylogs callhistorylogs[]
|
|
2226
|
+
collectionsCollected collection[] @relation("CollectionCollectedByUser")
|
|
2227
|
+
collectionsStatusUpdated collection[] @relation("CollectionStatusUpdatedByUser")
|
|
2221
2228
|
lms_users_permissions lms_users_permissions?
|
|
2222
2229
|
reference reference[]
|
|
2223
2230
|
}
|
|
@@ -2267,7 +2274,6 @@ model bankstatement {
|
|
|
2267
2274
|
@@index([customerID], map: "bankstatement_ibfk_1")
|
|
2268
2275
|
}
|
|
2269
2276
|
|
|
2270
|
-
|
|
2271
2277
|
enum usersgoogle_oauth_provider {
|
|
2272
2278
|
google
|
|
2273
2279
|
facebook
|