@factor-wise/prisma-schema 1.0.26 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factor-wise/prisma-schema",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
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
@@ -668,7 +673,6 @@ model customer {
668
673
  leads leads[]
669
674
  reference reference[]
670
675
  reloan_status reloan_status[]
671
- templead templead[]
672
676
 
673
677
  @@index([firstName], map: "firstName")
674
678
  @@index([firstName], map: "firstName_2")
@@ -1850,26 +1854,26 @@ model user_ip_details {
1850
1854
 
1851
1855
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
1852
1856
  model users {
1853
- userID Int @id @default(autoincrement())
1854
- name String @db.VarChar(100)
1855
- email String
1856
- mobile String @db.VarChar(20)
1857
- did_no String? @db.VarChar(36)
1858
- branch String
1859
- userName String
1860
- password String
1861
- role users_role
1862
- status users_status @default(Active)
1863
- createdBy Int
1864
- createdDate DateTime @default(now()) @db.DateTime(0)
1865
- accessPer String @db.MediumText
1866
- utype String @default("ramfin-corp") @db.VarChar(216)
1867
- firebase_token String? @db.Text
1868
- device_token String? @db.Text
1869
- lip String @default("no") @db.VarChar(64)
1870
- convoque_login_id String? @db.Text
1871
- convoque_exten String? @db.Text
1872
- reloan_status 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[]
1873
1877
  }
1874
1878
 
1875
1879
  /// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
@@ -2137,6 +2141,7 @@ model cibildata {
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
  }
@@ -2250,7 +2257,6 @@ model bankstatement {
2250
2257
  id Int @id @default(autoincrement())
2251
2258
  customerID Int
2252
2259
  leadID Int?
2253
- tempLeadID Int
2254
2260
  pushData Json?
2255
2261
  documentFile String? @db.VarChar(255)
2256
2262
  password String? @db.VarChar(255)
@@ -2263,24 +2269,11 @@ model bankstatement {
2263
2269
  user_requirement Json?
2264
2270
  customer customer @relation(fields: [customerID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_1")
2265
2271
  leads leads? @relation(fields: [leadID], references: [leadID], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_3")
2266
- tempLead templead @relation(fields: [tempLeadID], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "bankstatement_ibfk_4")
2267
2272
 
2268
2273
  @@index([leadID], map: "leadID")
2269
- @@index([tempLeadID], map: "tempLeadID")
2270
2274
  @@index([customerID], map: "bankstatement_ibfk_1")
2271
2275
  }
2272
2276
 
2273
- model templead {
2274
- id Int @id @default(autoincrement())
2275
- createdAt DateTime @default(now()) @db.Timestamp(0)
2276
- customerID Int
2277
- updatedAt DateTime @default(now()) @db.Timestamp(0)
2278
- bankstatement bankstatement[]
2279
- customer customer @relation(fields: [customerID], references: [customerID], onDelete: NoAction, onUpdate: NoAction, map: "tempLead_ibfk_1")
2280
-
2281
- @@index([customerID], map: "customerID")
2282
- }
2283
-
2284
2277
  enum usersgoogle_oauth_provider {
2285
2278
  google
2286
2279
  facebook