@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factor-wise/prisma-schema",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "Shared Prisma schema and generated client for Factor Wise projects",
5
5
  "main": "generated/client/index.js",
6
6
  "types": "generated/client/index.d.ts",
@@ -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 String @default("no") @db.VarChar(216)
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 Int @id @default(autoincrement())
1285
- loanID Int
1286
- leadID Int @unique
1287
- loanNo String
1288
- customerID Int?
1289
- disbursalAmount Float
1290
- disbursalDate String? @db.Text
1291
- disbursalTime DateTime @default(dbgenerated("'00:00:00'")) @db.Time(0)
1292
- disbursalRefrenceNo String?
1293
- accountNo String @db.VarChar(100)
1294
- accountType String @db.VarChar(100)
1295
- bankIfsc String @db.VarChar(100)
1296
- bank String
1297
- bankBranch String
1298
- chequeDetails String
1299
- pdDate DateTime @db.Date
1300
- pdDoneBy String @db.VarChar(100)
1301
- deduction Float @default(0)
1302
- remarks String
1303
- status loan_status
1304
- rejReason String? @db.VarChar(256)
1305
- companyAccountNo String @default("")
1306
- ip String @db.VarChar(100)
1307
- disbursedBy Int?
1308
- createdDate DateTime @default(now()) @db.DateTime(0)
1309
- allocate_date DateTime? @default(now()) @db.DateTime(0)
1310
- allocated_by String? @db.VarChar(64)
1311
- lead leads @relation(fields: [leadID], references: [leadID])
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 Int @id @default(autoincrement())
1853
- name String @db.VarChar(100)
1854
- email String
1855
- mobile String @db.VarChar(20)
1856
- did_no String? @db.VarChar(36)
1857
- branch String
1858
- userName String
1859
- password String
1860
- role users_role
1861
- status users_status @default(Active)
1862
- createdBy Int
1863
- createdDate DateTime @default(now()) @db.DateTime(0)
1864
- accessPer String @db.MediumText
1865
- utype String @default("ramfin-corp") @db.VarChar(216)
1866
- firebase_token String? @db.Text
1867
- device_token String? @db.Text
1868
- lip String @default("no") @db.VarChar(64)
1869
- convoque_login_id String? @db.Text
1870
- convoque_exten String? @db.Text
1871
- reloan_status 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